:root {
  --wid-red: #b5121b;
  --wid-dark: #171717;
  --wid-surface: #fff;
  --wid-muted: #6b7280;
}

.wid-content {
  padding: 140px 20px 80px;
}

.wid-client-grid,
.wid-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}

.wid-client-card,
.wid-testimonial {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
}

.wid-client-card img {
  width: 100%;
  height: 90px;
  object-fit: contain;
}

.wid-gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
}

.wid-testimonial {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wid-stars {
  color: #f5a623;
  letter-spacing: 2px;
}

.hero {
  background-size: cover;
  background-position: center;
}

.contact-map iframe {
  width: 100%;
  min-height: 460px;
  border: 0;
  border-radius: 24px;
}

.admin-bar .header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }
}

/* ===== Testimonial bubbles v3 ===== */

.testimonials-grid {
  align-items: stretch;
}

.testimonial-card {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  filter: drop-shadow(0 18px 28px rgba(16, 24, 40, 0.1));
}

.testimonial-bubble {
  position: relative;
  min-height: 190px;
  padding: 34px 38px 38px;
  border: 1px solid rgba(181, 18, 27, 0.1);
  border-radius: 26px 26px 26px 8px;
  background: linear-gradient(145deg,
      #fff 0%,
      #fff 68%,
      #fff7f7 100%);
  box-shadow: 0 16px 45px rgba(17, 24, 39, 0.07);
  overflow: visible;
}

.testimonial-bubble::after {
  content: "";
  position: absolute;
  left: 34px;
  bottom: -17px;
  width: 34px;
  height: 34px;
  background: #fff;
  border-left: 1px solid rgba(181, 18, 27, 0.1);
  border-bottom: 1px solid rgba(181, 18, 27, 0.1);
  transform: rotate(-45deg);
  border-bottom-left-radius: 7px;
}

.testimonial-copy {
  position: relative;
  z-index: 2;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.85;
  font-style: italic;
}

.testimonial-copy p {
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  font-style: inherit;
}

.testimonial-quote {
  position: absolute;
  z-index: 1;
  color: rgba(181, 18, 27, 0.13);
  font-size: 38px;
  line-height: 1;
}

.testimonial-quote-left {
  left: 18px;
  top: 18px;
}

.testimonial-quote-right {
  right: 20px;
  bottom: 18px;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 20px;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  background: linear-gradient(135deg,
      var(--primary),
      #7f0d14);
  color: #fff;
  font: 700 20px/1 "Poppins", sans-serif;
  box-shadow: 0 8px 18px rgba(181, 18, 27, 0.22);
}

.testimonial-identity h3 {
  font-size: 18px;
  line-height: 1.2;
  margin: 0 0 3px;
}

.testimonial-identity h4 {
  font-size: 13px;
  margin: 0 0 5px;
  color: var(--muted);
  font-weight: 400;
}

.testimonial-stars {
  font-size: 13px;
  margin: 0;
  color: #ffc107;
  display: flex;
  gap: 3px;
}

.testimonial-card.revealed .testimonial-bubble {
  animation: testimonialBubbleIn 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.testimonial-card.revealed .testimonial-person {
  animation: testimonialPersonIn 0.55s 0.18s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes testimonialBubbleIn {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes testimonialPersonIn {
  0% {
    opacity: 0;
    transform: translateX(-16px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 767px) {
  .testimonial-bubble {
    min-height: 0;
    padding: 30px 28px 34px;
    border-radius: 22px 22px 22px 8px;
  }

  .testimonial-copy {
    font-size: 14px;
  }

  .testimonial-person {
    padding-left: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .testimonial-card,
  .testimonial-card:hover {
    transition: none;
    transform: none;
  }

  .testimonial-card.revealed .testimonial-bubble,
  .testimonial-card.revealed .testimonial-person {
    animation: none;
  }
}

/* v4 reliability: content is visible by default; motion is progressive enhancement. */

.no-js [data-reveal],
html:not(.wid-ready) [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

.js.wid-ready [data-reveal]:not(.revealed) {
  opacity: 0;
}

.services-section,
.clients-section,
.testimonials-section,
.counters-section,
.contact-section {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.section-empty-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px 20px;
  border: 1px dashed rgba(112, 17, 43, 0.28);
  border-radius: 14px;
  background: rgba(112, 17, 43, 0.04);
  color: #5e2536;
}

.client-logo span {
  display: block;
  text-align: center;
  font-weight: 700;
  color: #5d2537;
}

.contact-section .contact-info,
.contact-section .contact-map {
  min-width: 0;
}

/* ==================================================
   TAMBAHAN SAJA: GALLERY CLICKABLE
================================================== */

.gallery-slide {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-slide img {
  display: block;
  width: 100%;
  user-select: none;
  -webkit-user-drag: none;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.gallery-slide:hover img {
  transform: scale(1.035);
  filter: brightness(0.82);
}

.gallery-slide::after {
  content: "\f00e";
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;

  /*
   * Mengikuti Warna utama dari Website Settings.
   */
  background: var(--primary, #1f7aff);

  color: #fff;
  font-family: "Font Awesome 6 Free";
  font-size: 19px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -45%) scale(0.9);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.gallery-slide:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ==================================================
   TAMBAHAN SAJA: GALLERY POPUP
================================================== */

body.wid-lightbox-open {
  overflow: hidden;
}

.wid-gallery-lightbox {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 88px;
  background: rgba(8, 10, 14, 0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.wid-gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wid-lightbox-stage {
  position: relative;
  display: flex;
  width: min(1180px, 100%);
  height: min(82vh, 820px);
  align-items: center;
  justify-content: center;
}

.wid-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.48);
}

.wid-lightbox-close,
.wid-lightbox-nav {
  appearance: none;
  border: 0;
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.wid-lightbox-close {
  position: absolute;
  z-index: 4;
  top: 20px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 22px;
}

.wid-lightbox-close:hover {
  background: var(--primary, #1f7aff);
  transform: rotate(90deg);
}

.wid-lightbox-nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 18px;
  transform: translateY(-50%);
}

.wid-lightbox-prev {
  left: 20px;
}

.wid-lightbox-next {
  right: 20px;
}

.wid-lightbox-nav:hover {
  background: var(--primary, #1f7aff);
  transform: translateY(-50%) scale(1.06);
}

.wid-lightbox-caption {
  position: absolute;
  z-index: 4;
  right: 100px;
  bottom: 24px;
  left: 100px;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wid-lightbox-counter {
  position: absolute;
  z-index: 4;
  bottom: 20px;
  left: 50%;
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--primary, #1f7aff);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transform: translateX(-50%);
}

.wid-lightbox-counter+.wid-lightbox-caption {
  bottom: 62px;
}

@media (max-width: 768px) {
  .wid-gallery-lightbox {
    padding: 70px 14px 84px;
  }

  .wid-lightbox-stage {
    height: calc(100vh - 170px);
  }

  .wid-lightbox-close {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
  }

  .wid-lightbox-nav {
    top: auto;
    bottom: 16px;
    width: 46px;
    height: 46px;
    transform: none;
  }

  .wid-lightbox-nav:hover {
    transform: scale(1.05);
  }

  .wid-lightbox-prev {
    left: 18px;
  }

  .wid-lightbox-next {
    right: 18px;
  }

  .wid-lightbox-counter {
    bottom: 21px;
  }

  .wid-lightbox-caption,
  .wid-lightbox-counter+.wid-lightbox-caption {
    right: 18px;
    bottom: 74px;
    left: 18px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .gallery-slide img,
  .gallery-slide::after,
  .wid-gallery-lightbox,
  .wid-lightbox-close,
  .wid-lightbox-nav {
    transition: none;
  }
}


/* ==================================================
   TRACKING RESULT — COMPACT, CLEAN, RESPONSIVE
   Form tracking lama tidak diubah.
================================================== */

.tracking-result {
  width: 100%;
  max-width: 100%;
  margin: 24px 0 0;
  color: inherit;
  font-size: 15px;
  line-height: 1.6;
}

.tracking-result:empty {
  display: none;
}

.tracking-result--loading,
.tracking-result--error {
  width: min(560px, 100%);
  padding: 14px 16px;
  border-radius: 12px;
}

.tracking-result--loading {
  border: 1px solid rgba(31, 122, 255, 0.18);
  background: rgba(31, 122, 255, 0.06);
  color: var(--primary, #1f7aff);
}

.tracking-result--error {
  border: 1px solid rgba(220, 38, 38, 0.18);
  background: #fff5f5;
  color: #b91c1c;
}

.tracking-result--success {
  color: inherit;
}

/* Kartu utama hasil tracking */
.tracking-result-card {
  width: 100%;
  overflow: hidden;
  border: 1px solid #e7ebf0;
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.09),
    0 4px 12px rgba(15, 23, 42, 0.04);
}

/* Header nomor resi dan status */
.tracking-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid #edf0f4;
  background: linear-gradient(135deg,
      rgba(31, 122, 255, 0.06),
      #fff);
}

.tracking-result-head>div {
  min-width: 0;
}

.tracking-result-label,
.tracking-route span,
.tracking-result-grid span,
.tracking-description span {
  display: block;
  margin-bottom: 5px;
  color: #7b8492;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.tracking-result-head strong {
  display: block;
  overflow-wrap: anywhere;
  color: #172033;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.25;
}

.tracking-status {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid rgba(31, 122, 255, 0.2);
  border-radius: 999px;
  background: rgba(31, 122, 255, 0.08);
  color: var(--primary, #1f7aff);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Rute asal dan tujuan */
.tracking-route {
  display: grid;
  grid-template-columns:
    minmax(140px, 1fr) minmax(120px, 1.2fr) minmax(140px, 1fr);
  gap: 20px;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #edf0f4;
}

.tracking-route>div:last-child {
  text-align: right;
}

.tracking-route strong {
  display: block;
  overflow-wrap: anywhere;
  color: #172033;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.tracking-route-arrow {
  position: relative;
  display: grid;
  width: 100%;
  height: 32px;
  place-items: center;
  color: var(--primary, #1f7aff);
  font-size: 16px;
}

.tracking-route-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  left: 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(31, 122, 255, 0.24);
  transform: translateY(-50%);
}

.tracking-route-arrow i {
  position: relative;
  z-index: 1;
  padding: 5px 8px;
  background: #fff;
}

/* Detail pengiriman */
.tracking-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tracking-result-grid>div {
  min-width: 0;
  padding: 20px 22px;
  border-right: 1px solid #edf0f4;
  border-bottom: 1px solid #edf0f4;
}

.tracking-result-grid>div:nth-child(4n) {
  border-right: 0;
}

/*
 * Field terakhir "Terakhir Diperbarui"
 * memenuhi satu baris karena jumlah field ganjil.
 */
.tracking-result-grid>div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: 0;
  border-bottom: 0;
}

.tracking-result-grid strong {
  display: block;
  overflow-wrap: anywhere;
  color: #273244;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
}

/* Keterangan terakhir */
.tracking-description {
  margin: 20px 22px 22px;
  padding: 16px 18px;
  border-left: 4px solid var(--primary, #1f7aff);
  border-radius: 11px;
  background: #f7f9fc;
}

.tracking-description p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.65;
}

/* Laptop dan tablet besar */
@media (max-width: 1100px) {
  .tracking-result {
    width: 100%;
    max-width: 100%;
  }

  .tracking-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tracking-result-grid>div {
    border-right: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
  }

  .tracking-result-grid>div:nth-child(4n) {
    border-right: 1px solid #edf0f4;
  }

  .tracking-result-grid>div:nth-child(2n) {
    border-right: 0;
  }

  .tracking-result-grid>div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .tracking-result {
    width: 100%;
    max-width: 100%;
  }

  .tracking-result-head {
    padding: 20px;
  }

  .tracking-result-head strong {
    font-size: 20px;
  }

  .tracking-route {
    grid-template-columns:
      minmax(110px, 1fr) minmax(90px, 1fr) minmax(110px, 1fr);
    gap: 14px;
    padding: 22px 20px;
  }

  .tracking-route strong {
    font-size: 18px;
  }

  .tracking-result-grid>div {
    padding: 18px 20px;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .tracking-result {
    width: 100%;
    margin-top: 20px;
  }

  .tracking-result-card {
    border-radius: 17px;
  }

  .tracking-result-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
  }

  .tracking-status {
    align-self: flex-start;
  }

  .tracking-route {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 18px;
  }

  .tracking-route>div:last-child {
    text-align: left;
  }

  .tracking-route-arrow {
    width: 34px;
    height: 36px;
    transform: rotate(90deg);
  }

  .tracking-result-grid {
    grid-template-columns: 1fr;
  }

  .tracking-result-grid>div,
  .tracking-result-grid>div:nth-child(2n),
  .tracking-result-grid>div:nth-child(4n),
  .tracking-result-grid>div:last-child:nth-child(odd) {
    grid-column: auto;
    padding: 17px 18px;
    border-right: 0;
    border-bottom: 1px solid #edf0f4;
  }

  .tracking-result-grid>div:last-child {
    border-bottom: 0;
  }

  .tracking-description {
    margin: 17px 18px 19px;
    padding: 15px 16px;
  }
}

/* ==================================================
   TRACKING STATUS COLORS — FINAL
================================================== */

.tracking-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
}

.tracking-status--processing {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #2563eb !important;
}

.tracking-status--transit {
  background: #fff7ed !important;
  border-color: #fed7aa !important;
  color: #c2410c !important;
}

.tracking-status--delivered {
  background: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
  color: #15803d !important;
}

.tracking-status--problem {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #b91c1c !important;
}

.tracking-status--unknown {
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
  color: #4b5563 !important;
}

.tracking-status i,
.tracking-status span {
  color: inherit !important;
}


/* ==================================================
   TRACKING HISTORY TIMELINE
================================================== */

.tracking-history {
  padding: 26px 24px 28px;
  border-top: 1px solid #edf0f4;
  background: #fff;
}

.tracking-history-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.tracking-history-header>div {
  min-width: 0;
}

.tracking-history-header .tracking-result-label {
  display: block;
  margin: 0 0 4px;
  color: #7b8492;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.tracking-history-header h5 {
  margin: 0;
  color: #172033;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.tracking-history-count {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

/* Timeline utama */
.tracking-timeline {
  position: relative;
}

.tracking-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  padding-bottom: 26px;
}

.tracking-timeline-item:last-child {
  padding-bottom: 0;
}

/* Garis vertikal */
.tracking-timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 35px;
  bottom: 0;
  left: 17px;
  width: 2px;
  border-radius: 999px;
  background: #e3e8ef;
}

.tracking-timeline-item.is-latest:not(:last-child)::before {
  background: linear-gradient(to bottom,
      var(--primary, #1f7aff) 0%,
      #dbe4ee 65%,
      #e3e8ef 100%);
}

/* Marker timeline */
.tracking-timeline-marker {
  position: relative;
  z-index: 2;
}

.tracking-timeline-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #dbe2ea;
  border-radius: 50%;
  background: #fff;
  color: #64748b;
  font-size: 13px;
  box-shadow:
    0 5px 14px rgba(15, 23, 42, 0.09),
    0 1px 4px rgba(15, 23, 42, 0.05);
}

.tracking-timeline-icon i {
  color: inherit;
}

/* Konten timeline */
.tracking-timeline-content {
  min-width: 0;
  padding: 2px 0 0;
}

.tracking-timeline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.tracking-timeline-head>div {
  min-width: 0;
}

.tracking-timeline-status {
  display: inline;
  color: #172033;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.tracking-timeline-head time {
  flex: 0 0 auto;
  color: #7b8492;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  text-align: right;
  white-space: nowrap;
}

/* Label status terbaru */
.tracking-timeline-latest {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 4px 8px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Lokasi aktivitas */
.tracking-timeline-location {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.tracking-timeline-location i {
  flex: 0 0 auto;
  color: var(--primary, #1f7aff);
  font-size: 11px;
}

.tracking-timeline-location span {
  overflow-wrap: anywhere;
}

/* Deskripsi aktivitas */
.tracking-timeline-content p {
  margin: 7px 0 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.65;
}

/* ==================================================
   WARNA TIMELINE BERDASARKAN STATUS
================================================== */

/* Diproses */
.tracking-timeline-item--processing .tracking-timeline-icon {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
}

/* Dalam perjalanan */
.tracking-timeline-item--transit .tracking-timeline-icon {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

/* Terkirim */
.tracking-timeline-item--delivered .tracking-timeline-icon {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

/* Gagal atau tertunda */
.tracking-timeline-item--problem .tracking-timeline-icon {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

/* Status lainnya */
.tracking-timeline-item--unknown .tracking-timeline-icon {
  border-color: #d1d5db;
  background: #f3f4f6;
  color: #4b5563;
}

/* Marker terbaru sedikit lebih menonjol */
.tracking-timeline-item.is-latest .tracking-timeline-icon {
  box-shadow:
    0 0 0 4px rgba(31, 122, 255, 0.08),
    0 6px 16px rgba(15, 23, 42, 0.1);
}

/* ==================================================
   TABLET
================================================== */

@media (max-width: 768px) {
  .tracking-history {
    padding: 24px 20px 26px;
  }

  .tracking-history-header {
    margin-bottom: 23px;
  }

  .tracking-history-header h5 {
    font-size: 19px;
  }

  .tracking-timeline-item {
    grid-template-columns: 39px minmax(0, 1fr);
    gap: 13px;
    padding-bottom: 24px;
  }

  .tracking-timeline-icon {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .tracking-timeline-item:not(:last-child)::before {
    top: 33px;
    left: 16px;
  }

  .tracking-timeline-head {
    gap: 14px;
  }
}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 560px) {
  .tracking-history {
    padding: 22px 18px 24px;
  }

  .tracking-history-header {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 21px;
  }

  .tracking-history-header h5 {
    font-size: 18px;
  }

  .tracking-history-count {
    padding: 6px 10px;
    font-size: 10px;
  }

  .tracking-timeline-item {
    grid-template-columns: 35px minmax(0, 1fr);
    gap: 11px;
    padding-bottom: 23px;
  }

  .tracking-timeline-icon {
    width: 31px;
    height: 31px;
    font-size: 11px;
  }

  .tracking-timeline-item:not(:last-child)::before {
    top: 30px;
    left: 14px;
  }

  .tracking-timeline-head {
    flex-direction: column;
    gap: 5px;
  }

  .tracking-timeline-head time {
    text-align: left;
    white-space: normal;
  }

  .tracking-timeline-status {
    font-size: 14px;
  }

  .tracking-timeline-latest {
    display: table;
    margin: 6px 0 0;
  }

  .tracking-timeline-location {
    margin-top: 6px;
    font-size: 12px;
  }

  .tracking-timeline-content p {
    margin-top: 6px;
    font-size: 13px;
  }
}

/* ==================================================
  REDUCED MOTION
================================================== */

@media (prefers-reduced-motion: reduce) {
  .tracking-timeline-icon {
    transition: none;
  }
}

/* ==================================================
   FINAL RESPONSIVE SAFETY OVERRIDES
   Dimuat setelah site.css.
================================================== */

.tracking-card,
.tracking-result,
.tracking-result-card,
.tracking-history,
.contact-info,
.contact-map,
.testimonial-card,
.testimonial-bubble,
.gallery-carousel,
.gallery-viewport {
  min-width: 0;
  max-width: 100%;
}

.tracking-result {
  width: 100%;
}

.tracking-result-card {
  overflow: hidden;
}

.tracking-result-head,
.tracking-route,
.tracking-result-grid,
.tracking-history {
  min-width: 0;
}

.tracking-result strong,
.tracking-result p,
.tracking-result span,
.tracking-result time,
.tracking-timeline-content {
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 992px) {
  .testimonials-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tracking-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tracking-result-grid > div:nth-child(4n) {
    border-right: 1px solid #edf0f4;
  }

  .tracking-result-grid > div:nth-child(2n) {
    border-right: 0;
  }

  .tracking-result-grid > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: 0;
  }
}

@media (max-width: 768px) {
  .testimonial-bubble {
    min-height: 0;
  }

  .tracking-result-head,
  .tracking-history-header {
    gap: 14px;
  }

  .tracking-route {
    grid-template-columns: minmax(100px, 1fr) 70px minmax(100px, 1fr);
  }

  .wid-gallery-lightbox {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (max-width: 560px) {
  .tracking-result {
    margin-top: 18px;
  }

  .tracking-result-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .tracking-route {
    grid-template-columns: minmax(0, 1fr);
  }

  .tracking-route > div:last-child {
    text-align: left;
  }

  .tracking-route-arrow {
    width: 34px;
    transform: rotate(90deg);
  }

  .tracking-result-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tracking-result-grid > div,
  .tracking-result-grid > div:nth-child(2n),
  .tracking-result-grid > div:nth-child(4n),
  .tracking-result-grid > div:last-child:nth-child(odd) {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid #edf0f4;
  }

  .tracking-result-grid > div:last-child {
    border-bottom: 0;
  }

  .tracking-history-header {
    flex-direction: column;
  }

  .tracking-history-count {
    align-self: flex-start;
  }

  .tracking-timeline-head {
    flex-direction: column;
    gap: 5px;
  }

  .tracking-timeline-head time {
    text-align: left;
    white-space: normal;
  }

  .testimonial-person {
    padding-left: 8px;
  }

  .wid-lightbox-caption {
    white-space: normal;
  }
}

/* ==================================================
   DEDICATED TRACKING PAGE
================================================== */
.tracking-page {
  min-height: 100vh;
  background: #f7f9fc;
}

.tracking-page-hero {
  position: relative;
  overflow: hidden;
  padding: 180px 0 128px;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(135deg, var(--primary) 0%, #0759ba 100%);
  color: #fff;
}

.tracking-page-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -180px;
  width: 430px;
  height: 430px;
  border: 70px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.tracking-page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  text-align: center;
}

.tracking-page-kicker,
.tracking-page-search-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tracking-page-kicker {
  color: rgba(255, 255, 255, 0.8);
}

.tracking-page-hero h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.08;
}

.tracking-page-hero p {
  max-width: 650px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.7;
}

.tracking-section--page {
  margin-top: -72px;
  padding-bottom: 90px;
}

.tracking-card--page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid rgba(12, 55, 95, 0.08);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(20, 55, 90, 0.13);
}

.tracking-page-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.tracking-page-search-label {
  margin-bottom: 6px;
  color: var(--primary);
}

.tracking-page-search-head h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
}

.tracking-page-search-head > i {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  place-items: center;
  border-radius: 16px;
  background: rgba(22, 119, 255, 0.09);
  color: var(--primary);
  font-size: 22px;
}

.tracking-form--page {
  max-width: 100%;
  gap: 12px;
}

.tracking-form--page input {
  min-height: 54px;
  padding-right: 20px;
  padding-left: 20px;
  border-radius: 12px;
  font-size: 16px;
}

.tracking-form--page .btn-primary {
  display: inline-flex;
  min-width: 145px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  cursor: pointer;
}

.tracking-card--page .tracking-result:not(:empty) {
  margin-top: 26px;
}

@media (max-width: 768px) {
  .tracking-page-hero {
    padding: 142px 0 112px;
  }

  .tracking-section--page {
    margin-top: -58px;
    padding-bottom: 68px;
  }

  .tracking-card--page {
    padding: 24px;
    border-radius: 18px;
  }
}

@media (max-width: 560px) {
  .tracking-page-search-head > i {
    display: none;
  }

  .tracking-form--page {
    flex-direction: column;
  }

  .tracking-form--page .btn-primary {
    width: 100%;
    min-height: 52px;
  }
}
