:root{
  --bg:#0F171D;
  --bg-dark:#070B0F;
  --panel:#0c1b23;
  --cyan:#3AC1D1;
  --white:#FFFFFF;
  --muted:#96a7ad;
  --border:rgba(255,255,255,.11);
  --font-heading: 'Exo 2', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Outfit', sans-serif;
}

body{
    background-color: var(--bg-dark);
}

.milestones-background{
    height: 591px;
    position: absolute;
    inset: 0;
    background-image:url(".././images/milestones-banner-bg.png");
    background-position:center center;
    background-size:cover;
    background-repeat:no-repeat;
}
section.milestones-journey {
    background: var(--bg);
    padding: 60px 20px;
}
section.milestones-journey .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.journey-container {
    display: flex;
    gap: 30px;
    align-items: center;
}
.journey-contents p {
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
    font-weight: 400;
    margin-top: 10px;
}
.journey-explore .btn{
    min-width: 236px;
}

.timeline-wrapper {
  position: relative;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

.timeline-container {
  position: relative;
  width: 100%;
  height: 2900px;
  background: url('.././images/milestone-bg.png') no-repeat center top;
  background-size: contain;
}

.date-tag {
  color: #3AC1D1;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 24px;
  margin-bottom: 6px;
}

.title {
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
  margin-bottom: 6px;
  color: #ffffff;
}

.description {
  color: #ffffff;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  margin-bottom: 8px;
}

.link {
    color: #22d3ee;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    margin-top: 12px;
    gap: 6px;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    align-content: center;
}
.link:hover {
  transform: translateX(4px);
}

.card-box {
  background: #0F171D;
  border: 1px solid #3AC1D1;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

@media (min-width: 992px) {
  .card-box:hover {
    transform: translateY(-4px);
    border-color: #00b4d8;
    box-shadow: 0 12px 35px rgba(0, 180, 216, 0.25);
}
}

.card-box.has-image {
  display: flex;
  gap: 16px;
  align-items: center;
}

.card-box.has-image .text-col {
  flex: 1;
}

.card-box.has-image .img-col {
  width: 207px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
}

.card-box.has-image .img-col img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.5s ease;
}

.card-box.has-image:hover .img-col img {
  transform: scale(1.06);
}

.road-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  z-index: 4;
  box-shadow: 0 0 8px #ffffff;
}

.pointer-line {
  position: absolute;
  height: 1.5px;
  background-color: rgba(255, 255, 255, 0.75);
  z-index: 3;
}

.timeline-item {
  position: absolute;
  display: flex;
  align-items: center;
  z-index: 6;
}

.timeline-item.left-side {
  justify-content: flex-end;
  text-align: left;
}

.timeline-item.right-side {
  justify-content: flex-start;
  text-align: left;
}

.toggle-btn {
  display: none; 
}

.dot-1 {
    top: 2.7%;
    left: 50.5%;
}
.pt-1 {
    top: 2.8%;
    left: 34%;
    width: 214px;
}
.item-1 {
    top: 1%;
    left: 4%;
    width: 307px;
}
.dot-1 .milestone-icon {
    position: absolute;
    right: 226px;
    bottom: -33px;
}

.dot-2 {
    top: 6.1%;
    right: 60.5%;
}
.pt-2 {
    top: 6.2%;
    right: 42%;
    width: 245px;
}
.item-2 {
    top: 3.5%;
    right: 8%;
    width: 440px;
}


.dot-3 {
    top: 13.5%;
    left: 51.5%;
}
.pt-3 {
    top: 13.6%;
    left: 39.5%;
    width: 155px;
}
.item-3 {
    top: 11.5%;
    left: 16%;
    width: 215px;
}
.dot-3 .milestone-icon {
    position: absolute;
    right: 162px;
    bottom: -33px;
}

.dot-4 {
    top: 19.7%;
    right: 36.5%;
}
.pt-4 {
    top: 19.8%;
    right: 32.6%;
    width: 58px;
}
.item-4 {
    top: 17.5%;
    right: 1%;
    width: 337px;
}
.dot-4 .milestone-icon {
    position: absolute;
    left: 56px;
    bottom: -33px;
}

.dot-5 {
    top: 26.7%;
    left: 41.8%;
}
.pt-5 {
    top: 26.8%;
    left: 30.5%;
    width: 145px;
}
.item-5 {
    top: 24.5%;
    left: 2%;
    width: 320px;
}
.dot-5 .milestone-icon {
    position: absolute;
    bottom: -33px;
    right: 156px;
}

.dot-6 {
    top: 34.1%;
    right: 70.2%;
}
.pt-6 {
    top: 34.2%;
    right: 50.5%;
    width: 255px;
}
.item-6 {
    top: 29.5%;
    right: 12%;
    width: 505px;
}

.dot-7 {
    top: 46.4%;
    left: 46.8%;
}
.pt-7 {
    top: 46.5%;
    left: 41.8%;
    width: 65px;
}
.item-7 {
    top: 39.8%;
    left: 1%;
    width: 537px;
}

.dot-8 {
    top: 51.4%;
    right: 42.2%;
}
.pt-8 {
    top: 51.5%;
    right: 38%;
    width: 60px;
}
.item-8 {
    top: 46.5%;
    right: 1%;
    width: 505px;
}

.dot-9 {
    top: 58.1%;
    left: 48.8%;
}
.pt-9 {
    top: 58.2%;
    left: 43%;
    width: 80px;
}
.item-9 {
    top: 54.5%;
    left: 10%;
    width: 348px;
}
.dot-9 .milestone-icon {
    position: absolute;
    right: 84px;
    bottom: -33px;
}

.dot-10 {
    top: 64.7%;
    right: 39.5%;
}
.pt-10 {
    top: 64.8%;
    right: 32.5%;
    width: 95px;
}
.item-10 {
    top: 61.8%;
    right: 1%;
    width: 337px;
}
.dot-10 .milestone-icon {
    position: absolute;
    right: -151px;
    bottom: -33px;
}

.dot-11 {
    top: 71.1%;
    left: 55.8%;
}
.pt-11 {
    top: 71.2%;
    left: 41.5%;
    width: 186px;
}
.item-11 {
    top: 65.5%;
    left: 1px;
    width: 537px;
}

.dot-12 {
    top: 81.1%;
    right: 48%;
}
.pt-12 {
    top: 81.2%;
    right: 39%;
    width: 120px;
}
.item-12 {
    top: 75.0%;
    right: 1%;
    width: 505px;
}

.dot-13 {
    top: 89.1%;
    left: 44.8%;
}
.pt-13 {
    top: 89.2%;
    left: 42.5%;
    width: 32px;
}
.item-13 {
    top: 82.5%;
    left: 1%;
    width: 537px;
}

.dot-14 {
    top: 91.9%;
    right: 49.5%;
}
.pt-14 {
    top: 92%;
    right: 43%;
    width: 93px;
}
.item-14 {
    top: 90.0%;
    right: 11%;
    width: 337px;
}
.dot-14 .milestone-icon {
    position: absolute;
    right: -146px;
    bottom: -33px;
}

@media (min-width: 992px) {
  .timeline-item.left-side {
    opacity: 0;
    transform: translateX(-35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item.right-side {
    opacity: 0;
    transform: translateX(35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.pointer-line {
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pointer-line.pt-1, .pointer-line.pt-3, .pointer-line.pt-5, .pointer-line.pt-7,
.pointer-line.pt-9, .pointer-line.pt-11, .pointer-line.pt-13 {
    transform-origin: right center;
}

.pointer-line.pt-2, .pointer-line.pt-4, .pointer-line.pt-6, .pointer-line.pt-8,
.pointer-line.pt-10, .pointer-line.pt-12, .pointer-line.pt-14 {
    transform-origin: left center;
}

.road-dot {
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.pointer-line.animate-in {
    opacity: 1;
    transform: scaleX(1);
}

.road-dot.animate-in {
    opacity: 1;
    transform: scale(1);
}
}

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


@media (max-width: 991px) {
  .timeline-wrapper {
    padding: 20px 15px;
}

.milestone-icon {
    display: none;
}

.timeline-container {
    height: auto !important;
    background: none !important;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-left: 65px;
    margin-left: 0;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 32px;
    background: url('.././images/milestone-mb.png') repeat-y center top;
    background-size: cover;
    border-radius: 4px;
}

.timeline-container::after {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 15px;
    width: 2px;
    border-left: 2px dashed rgba(255, 255, 255, 0.6);
}

.pointer-line,
.road-dot,
.icon-badge {
    display: none !important;
}

.timeline-item {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -50px;
    top: 14px;
    width: 42px;
    height: 1.5px;
    background-color: #ffffff;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -53px;
    top: 11px;
    width: 7px;
    height: 7px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 6px #ffffff;
}

.item-content {
    position: relative;
    width: 100%;
    transition: all 0.3s ease;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
}

.header-text {
    padding-right: 12px;
}

.toggle-btn {
    display: flex !important;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #00b4d8;
    color: #00b4d8;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 300;
    flex-shrink: 0;
    background: #060d15;
    transition: transform 0.2s ease, background 0.2s ease;
}

.item-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
    opacity: 0;
}

.timeline-item.active .item-body {
    max-height: 1000px;
    opacity: 1;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in;
    margin-top: 12px;
}

.timeline-item.active .item-content {
    background: #0F171D;
    border: 1px solid #3AC1D1;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.25);
}

.timeline-item:not(.active) .item-content {
    background: transparent;
    border: 1px solid transparent;
    padding: 0;
}

.card-box {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.card-box.has-image {
    flex-direction: column;
    align-items: flex-start;
}

.card-box.has-image .img-col {
    width: 100%;
    margin-top: 12px;
}

.card-box.has-image .img-col img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.timeline-item.non-collapsible .item-header {
    cursor: default;
}

.timeline-item.non-collapsible .item-body {
    max-height: none !important;
    opacity: 1 !important;
    margin-top: 6px;
}
}


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

@media(max-width:700px){
    .milestones-background{
        height: auto;
        background-image:url(".././images/milestones-banner-mb.png");
    }
    .date-tag,.description {
        font-size: 14px;
        line-height: 22px;
    }
    .title {
        font-size: 18px;
        line-height: 24px;
        margin-bottom: 0;
    }
    section.milestones-journey .container,.journey-container {
        display: block;
    }
    .journey-contents {
        margin-top: 20px;
    }
    .journey-explore .btn {
        margin-top: 30px;
    }
    .card-box.has-image{
        gap: 0;
    }
    .journey-container img {
        width: 64px;
        height: 64px;
    }

}

/* ================= SMALL PHONES ================= */

@media(max-width:420px){}