.msb-landing-timeline {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1318px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.msb-landing-timeline__track {
  position: relative;
  margin-top: 32px;
}

.msb-landing-timeline__scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  padding: 32px 24px 24px 0px;
  align-items: flex-start;
}

.msb-landing-timeline__scroll::-webkit-scrollbar {
  display: none;
}

.msb-landing-timeline__btn_wrap {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 100%;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.msb-landing-timeline__btn {
  /* position: absolute; */
  /* top: 50%; */
  /* transform: translateY(-50%); */
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0px;
  background: #dee5ef66;
  backdrop-filter: blur(4px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition:
    opacity 0.2s,
    box-shadow 0.2s;
  padding: 0;
  margin: 0 !important;
}

.msb-landing-timeline__btn_wrap .msb-landing-timeline__btn {
  pointer-events: auto;
}

.msb-landing-timeline__btn:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.msb-landing-timeline__btn:hover svg {
    stroke: #F4600C;
}

.msb-landing-timeline__btn:hover {
    background-color: #fff;
}

.msb-landing-timeline__btn svg {
    width: 32px;
    height: 32px;
    color: #091E42;
}

.msb-landing-timeline__btn--prev {
  /* left: 60px; */
}
.msb-landing-timeline__btn--next {
  /* right: 60px; */
}

.msb-landing-timeline__btn.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.msb-tl-item {
  display: flex;
  flex: 0 0 calc((100% - 64px) / 2.5);
  scroll-snap-align: start;
  min-width: 240px;
  min-height: 467px;
  cursor: pointer;
  transition: 0.4s all;
  flex-direction: column;
  gap: 32px;
}

.msb-tl-item__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0px;
  min-height: 28px;
}

.msb-tl-item__year {
  font-size: 32px;
  font-weight: 500;
  color: #091e42;
  white-space: nowrap;
  line-height: 1;
  flex-shrink: 0;
  transition:
    font-size 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.25s ease,
    font-weight 0.25s ease;
}

.msb-tl-item__line {
  flex: 1;
  height: 1px;
  background: #8993a4;
}

.msb-tl-item__img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
}

.msb-tl-item__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* ── Body ── */
.msb-tl-item__title {
  font-size: 26px;
  font-weight: 600;
  color: #091e42;
  margin: 0 0 0;
  line-height: 1.5;
  transition:
    font-size 0.25s ease,
    font-weight 0.25s ease;
}

.msb-tl-item__desc {
  font-size: 16px;
  color: #505f79;
  line-height: 1.5;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease,
    margin-top 0.3s ease;
}


.msb-tl-item:hover {
  transform: translateY(-20px);
}

.msb-tl-item:hover .msb-tl-item__year {
  color: #ef4029;
}

.msb-tl-item:hover .msb-tl-item__desc {
  max-height: 160px;
  opacity: 1;
  margin-top: 8px;
}

@media (max-width: 1024px) {
  .msb-landing-timeline {
    padding: 0 24px;
  }
}

@media (max-width: 768px) {
  .msb-landing-timeline {
    padding: 0 16px;
  }

  .msb-tl-item {
    flex: 0 0 78%;
    min-height: 250px;
  }

  .msb-landing-timeline__btn--prev {
    /* left: 0; */
    width: 32px;
    height: 32px;
    min-height: auto !important;
  }

  .msb-landing-timeline__btn--next {
    /* right: 0; */
    width: 32px;
    height: 32px;
    min-height: auto !important;
  }

  .msb-landing-timeline__btn svg {
    width: 24px;
    height: 24px;
  }

  .msb-tl-item__title {
    font-size: 20px;
  }

  .msb-tl-item:hover {
    transform: translateY(0px);
}

.msb-tl-item__desc {
    opacity: 0;
    max-height: unset;
    font-size: 14px;
    display: none;
}
}

.msb-tl-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.msb-tl-popup.is-open {
  visibility: visible;
  opacity: 1;
}

.msb-tl-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.msb-tl-popup__card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 800px;
  max-height: 640px;
  overflow: hidden;
  scrollbar-width: thin;
  padding: 24px;
  box-shadow: 0px 4px 12px 12px #0000000a;
  box-sizing: border-box;
  transform: translateY(64px);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
}

.msb-tl-popup.is-open .msb-tl-popup__card {
  transform: translateY(0);
}

.msb-tl-popup__top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 0;
  align-items: start;
  max-height: 320px;
}

.msb-tl-popup__img-wrap {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.msb-tl-popup__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.msb-tl-popup__meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}

.msb-tl-popup__year {
  color: #091e42;
  font-family: Inter;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.5;
  letter-spacing: 0px;
}

.msb-tl-popup__title {
  font-size: 24px;
  font-weight: 500;
  color: #091e42;
  margin: 0;
  line-height: 1.25;
  letter-spacing: 0px;
  text-transform: uppercase;
}

.msb-tl-popup__content {
  font-size: 15px;
  line-height: 1.7;
  color: #505f79;
  margin-top: 20px;
  max-height: 150px;
  overflow-y: scroll;
}

.msb-tl-popup__content p {
  margin: 0 0 12px;
}

.msb-tl-popup__content p:last-child {
  margin-bottom: 0;
}

.msb-tl-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 2;
  flex-shrink: 0;
  min-height: unset !important;
}

.msb-tl-popup__close:hover {
  background: #fff;
}

@media (max-width: 768px) {
  .msb-tl-popup {
    padding: 16px;
  }
}

@media (max-width: 600px) {
  .msb-tl-popup__top {
    grid-template-columns: 1fr;
  }
  .msb-tl-popup__card {
    padding: 20px;
    border-radius: 16px;
    height: 600px;
  }
  .msb-tl-popup__year {
    font-size: 26px;
  }
  .msb-tl-popup__title {
    font-size: 20px;
  }
}
