:root{
  --orange:#c24d34;
  --purple:#4c148b;
  --white:#ffffff;
  --muted:#6c757d;
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
  padding: 80px 0;
  color: var(--white);

  /* Background image cover */
  background-image: url('assets/images/tracking/track3.png');
  background-size: cover;        /* Stretch to cover full area */
  background-position: center;   /* Center the main focus */
  background-repeat: no-repeat;
  aspect-ratio: 16/4;            /* Makes hero section exactly 16:9 */
}

/* Dark overlay layer */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(18, 2, 71, 0.15); /* dim effect */
  backdrop-filter: blur(1px);     /* soft blur (optional) */

  z-index: 1;
}

/* Content stays above overlay */
.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-title{ font-size: clamp(2rem, 4.5vw, 3.2rem); line-height:1.02; }
.lead{ opacity: .9; }

/* AWB input + button */
.awb-input{
  border-radius: 36px;
  padding: 16px 20px;
  min-width: 320px;
  max-width: 640px;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
  border: 2px solid rgba(194,77,52,.25);
  background: #fff;
}
.track-btn{
  background: var(--orange);
  color: #111;
  border-radius: 36px;
  padding: 18px 28px;
  font-weight:700;
  box-shadow: 0 8px 28px rgba(194,77,52,.25);
  border: none;
}

/* circle graphic on the right */
.circle-graphic{
  width: 220px; height:220px; border-radius:50%;
  background: linear-gradient(180deg,var(--purple), #6b2b6e);
  display:flex; align-items:center; justify-content:center;
  margin: 8px auto;
  box-shadow: 0 10px 40px rgba(76,20,139,.35), inset 0 -8px 20px rgba(0,0,0,.15);
}
.circle-graphic i{ color: #fff; }

/* small header logo in the card */
.small-logo{
  width:46px; height:46px; object-fit:cover; border-radius:8px; border:1px solid #eee;
}

/* ===== Hidden sections (completely hidden before click) ===== */
.hidden-section{
  max-height:0;
  overflow:hidden;
  opacity:0;
  transform:translateY(12px);
  transition: max-height 520ms ease, opacity 520ms ease, transform 520ms ease;
}

/* when visible */
.hidden-section.show{
  max-height:4000px; /* large so entire content fits */
  opacity:1;
  transform:translateY(0);
}

/* ===== Package card and progress ===== */
.custom-progress{
  height:8px;
  border-radius:6px;
  background: #e9f4ea;
  overflow:hidden;
}
.status-bubble{
  width:44px; height:44px; border-radius:50%;
  background:#e9f9ee; color:#1b7a3a; display:flex; align-items:center; justify-content:center;
  border:2px solid #dff1db;
}
.card{ border-radius:10px; }

/* ===== Timeline styles ===== */
.timeline-wrapper{
   display:flex;
    flex-direction:column;
     gap:0px; 
}
.timeline-item{
  display:grid; grid-template-columns:48px 1fr 120px; gap:16px; align-items:start;
  position:relative; padding:8px 0;
  border-left: 3px solid transparent;
}

@media (min-width: 992px) {
  .timeline-item {
    grid-template-columns: 60px 200px 420px; /* tighter */
    max-width: 700px;                       /* keeps items centered */
    margin-left: auto;
    margin-right: auto;
  }
}

.timeline-item::before{
  content:'';
  position:absolute;
  left:24px; 
  top:0;
  bottom:0; 
  width:2px; 
  background:#eee;
  transform:translateX(-90%);
  z-index: -5 !important;        /* GO BACKWARD */
}


.timeline-icon{
  width:48px; height:48px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:#f7f8fb; border:1px solid #eee; color:var(--purple);
}
.timeline-icon.delivered{ background:#e9f9ee; color: #1b7a3a; border-color:#dff1db; }
.timeline-body{ padding-top:4px; }
.timeline-time{ text-align:right; white-space:nowrap; }

/* responsive tweaks */
@media (max-width:767px){
  .timeline-item{ grid-template-columns:40px 1fr 90px; }
  .hero-section{ padding:40px 0; }
  .awb-input{ min-width:200px; width:100%;}
}

/* beside AWB button */
.store-btn {
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.store-btn:hover {
    transform: scale(1.03);
}

.store-img {
    width: 180px;   /* adjust size if needed */
    max-width: 100%;
    border-radius: 12px;
}

/* Optional: Background effect if you add a background image */
.download-section {
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    border-radius: 10px;
}
.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.show {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0);
    transition: all 0.4s ease;
}
.space {
  display: inline-block;
  width: 20px; /* adjust as needed */
}
.btn{
  background-color: #f97d31;
  transition: 0.5s;
  font-weight: 500;
}
.btn:hover{
  background-color: #4c1190;
  color: white;
    font-weight: 500;
}

.tracking-wrapper {
    width: 100%;
    margin: 20px 0;
}

/* FIXED HEIGHT AREA SO DOT CANNOT MOVE UP OR DOWN */
.tracking-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 25px;    /* IMPORTANT: This locks the dot on the line */
}

/* Base grey line */
.tracking-timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;               /* center of container */
    transform: translateY(-50%);
    width: 100%;
    height: 6px;
    background: #dcdcdc;
    border-radius: 3px;
    z-index: 1;
}

/* Green progress bar */
.tracking-timeline::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    background: #4caf50;
    border-radius: 3px;
    z-index: 2;
}

/* Stage widths */
/* Stage 1 = only dot 1 filled */
.tracking-wrapper[data-stage="1"] .tracking-timeline::after {
    width: calc(25% - 10px);   /* exact to first dot */
}

/* Stage 2 = dot 1 + dot 2 */
.tracking-wrapper[data-stage="2"] .tracking-timeline::after {
    width: calc(50% - 10px);   /* exact to second dot */
}

/* Stage 3 = dot 1 + dot 2 + dot 3 */
.tracking-wrapper[data-stage="3"] .tracking-timeline::after {
    width: calc(75% - 10px);   /* exact to third dot */
}

/* Stage 4 = full */
.tracking-wrapper[data-stage="4"] .tracking-timeline::after {
    width: 100%;
}


/* Each step */
.track-step {
    width: 25%;
    text-align: center;
    position: relative;
}

/* DOT EXACTLY ON THE LINE */
.dot {
    width: 18px;
    height: 18px;
    background: white;
    border: 3px solid #ccc;
    border-radius: 50%;
    position: absolute;
    top: 50%;                     /* PERFECT CENTER */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

/* Completed (green) circles */
/* Stage 1 = only first dot green */
.tracking-wrapper[data-stage="1"] .track-step:nth-child(1) .dot {
    background: #4caf50;
    border-color: #4caf50;
}

/* Stage 2 = first two dots green */
.tracking-wrapper[data-stage="2"] .track-step:nth-child(-n+2) .dot,
.tracking-wrapper[data-stage="3"] .track-step:nth-child(-n+3) .dot,
.tracking-wrapper[data-stage="4"] .track-step:nth-child(-n+4) .dot {
    background: #4caf50;
    border-color: #4caf50;
}



/* Labels */
.track-step span {
    display: block;
    margin-top: 40px;   /* Moves label BELOW the timeline */
    font-size: 14px;
    color: #333;
}
