/* Timeline CSS Styles Extracted from Case Study Detail Page */

/* ===== JOURNEY SECTION STYLES ===== */

.journey-section .totals {
  display: flex;
  gap: 20px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.journey-section .team-row {
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  display: flex;
  gap: 8px;
  align-items: start;
  margin-bottom: 24px;
}

.journey-section .team-btns-flex {
  display: flex;
  gap: 8px;
  font-size: 10px;
}

.journey-section .team-btn {
  padding: 7px 12px;
  background: #f9f9f9;
  border-radius: 8px;
}

.journey-section.black-background .team-btn {
  background: #191919;
  color: #fff;
  line-height: 1.5;
}

.journey-section .phases-wrapper {
  border-top: 1px solid #afafaf;
  border-bottom: 1px solid #afafaf;
  padding-block: 32px;
  padding-bottom: 32px;
  padding-top: 32px;
  margin-bottom: 32px;
}

.journey-section.black-background .phases-wrapper {
  border-top: 1px solid #252525;
  border-bottom: 1px solid #252525;
}

.journey-section .phases-image {
  height: 334px;
  overflow: clip;
  margin-bottom: 16px;
}

.journey-section .phases-image img {
  position: relative;
  height: 100%;
  cursor: grab;
}

.journey-section .phases-scroller {
  height: 4px;
  position: relative;
  width: 100%;
  background: #daeed1;
  border-radius: 4px;
  cursor: pointer;
}

.journey-section .progress-fill {
  position: absolute;
  display: block;
  height: 4px;
  background: linear-gradient(131deg, #fbca76, #fdb63d);
  border-radius: 4px;
  cursor: grab;
}

/* ===== TIMELINE TABLE STYLES ===== */

.timeline-table::-webkit-scrollbar {
  width: 20px;
  height: 5px;
  padding-top: 30px;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey;
  border-radius: 10px;
  background-color: #f1f1f1;
}

.timeline-table::-webkit-scrollbar-thumb {
  background-color: #fdc463;
  border-radius: 10px;
}

.timeline-table-wrapper {
  width: 100%;
  overflow-x: hidden;
}

.journey-section .timeline-table {
  position: relative;
}

.journey-section .timeline-table .timeline-columns {
  width: 86.875rem;
  height: 334px;
  position: relative;
  left: 0;
  top: 0;
  background: #f9f9f9;
  overflow: hidden;
  border-radius: 15px;
}

.journey-section.black-background .timeline-table .timeline-columns {
  background: #252525;
}

.journey-section .timeline-table .timeline-columns .timeline-column {
  color: #151915;
  text-align: left;
  font-size: 1rem;
  line-height: 120%;
  position: relative;
  top: 0.625rem;
  display: inline-flex;
  width: 300px;
  vertical-align: top;
  border-bottom: 1px solid #e9e9e9;
  padding: 4px 0 9px 5px;
}

.journey-section.black-background
  .timeline-table
  .timeline-columns
  .timeline-column {
  color: #fff;
  border-bottom: 1px solid #000;
}

.journey-section .timeline-table .timeline-columns .timeline-line {
  height: 334px;
  position: relative;
  display: inline-flex;
  border: 1px solid #e9e9e9;
  top: -12px;
}

.journey-section.black-background
  .timeline-table
  .timeline-columns
  .timeline-line {
  border: 1px solid #000;
}

.journey-section .timeline-table .timeline-columns .timeline-line.active {
  top: 40px;
  border: 1px solid #5ac100;
  top: 30px;
}

.journey-section .timeline-table .timeline-columns .timeline-title {
  position: absolute;
  border-bottom: 2px solid #e9e9e9;
  width: 300px;
  margin-left: 10px;
  padding-bottom: 10px;
  padding-top: 2px;
}

.journey-section.black-background
  .timeline-table
  .timeline-columns
  .timeline-title {
  border-bottom: 2px solid #000;
}

.journey-section .timeline-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 10px;
  top: 40px;
  background: #daeed0;
  border-radius: 0.25rem;
  padding: 0.375rem 1rem;
  border: 1px solid #24b400;
  color: #151915;
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
  letter-spacing: 0;
  text-align: left;
}

.journey-section.black-background .timeline-bar {
  color: #fff;
  background: #2f441e;
}

.journey-section .timeline-bar.active {
  background: linear-gradient(130.27deg, #97cf00 -14.98%, #24b400 109.44%),
    linear-gradient(0deg, #daeed1, #daeed1);
  color: #fff;
}

.journey-section .phases-scroller-grid {
  margin-top: 20px;
  margin-bottom: 10px;
}

/* ===== TOTAL CARDS STYLES ===== */

.journey-section .total-card {
  flex: 1;
  padding: 12px 12px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  border-radius: 4px;
}

.journey-section.silver-background .total-card {
  background: #fff;
}

.journey-section.white-background .total-card {
  background: #f9f9f9;
}

.journey-section.black-background .total-card {
  background: #252525;
}

.journey-section .total-card .list-item {
  min-width: 256px;
  margin-bottom: 0;
}

.journey-section .total-text {
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  line-height: 150%;
}

.journey-section .total-number {
  margin-bottom: -3px;
  margin-top: 6px;
  min-width: 200px;
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
  line-height: 90%;
  text-align: center;
}

/* ===== PROGRESS TIMELINE STYLES ===== */

.progress-timeline {
  background: #1a1a1a;
  margin-bottom: 15px;
  border-radius: 6px;
  overflow: hidden;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.timeline-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  user-select: none;
  background: #252525;
  border-radius: 6px;
}

.timeline-header {
  display: flex;
  width: max-content;
  background-color: #252525;
  border-bottom: 2px solid black;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-cell {
  padding: 0.6rem 0.8rem;
  font-size: 12px;
  font-weight: 700;
  border-right: 2px solid black;
  user-select: text;
  white-space: nowrap;
  text-align: center;
  background-color: #252525;
  min-width: 180px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.header-cell:last-child {
  border-right: none;
}

.timeline-grid {
  display: flex;
  flex-direction: column;
  width: max-content;
  position: relative;
  min-height: 80px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  overflow: hidden;
}

.timeline-row {
  display: flex;
  position: relative;
  min-height: 40px;
  border-bottom: none;
}

.timeline-row:last-child {
  border-bottom: none;
}

.timeline-cell {
  min-width: 180px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  padding: 0;
  height: 40px;
}

.timeline-cell:last-child {
  border-right: none;
}

.task-item {
  background: linear-gradient(135deg, #e69100 0%, #f0a500 100%);
  border-radius: 4px;
  padding: 8px 12px;
  border: 2px solid #ffffff;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 500;
  text-align: left;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  user-select: text;
  z-index: 10;
  min-height: 30px;
  display: flex;
  align-items: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal;
  overflow: visible;
  word-wrap: break-word;
}

.task-item:hover {
  transform: translateY(-50%) scale(1.02);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.task-item > p {
  color: #ffffff !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  margin: 0;
  font-weight: 500;
  white-space: normal;
  overflow: visible;
  word-wrap: break-word;
}

.timeline-container::-webkit-scrollbar {
  height: 8px;
  border-radius: 4px;
}

.timeline-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.timeline-container::-webkit-scrollbar-thumb {
  background: linear-gradient(131deg, #fac065, #fdad25);
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.timeline-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(131deg, #f0a500, #e69100);
}

/* Hide vertical scrollbar */
.timeline-container::-webkit-scrollbar:vertical {
  display: none;
}

.timeline-container::-webkit-scrollbar:horizontal {
  display: block;
}

/* ===== EXACT TIMELINE STYLES ===== */

.exact-timeline {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.exact-timeline-item {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 16px;
}

.exact-bullet {
  width: 12px;
  height: 12px;
  border: 3px solid #1a1a1a;
  border-radius: 50%;
  position: relative;
  margin-right: 12px;
}

.exact-timeline-item:not(:last-child) .exact-bullet::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 0;
  height: 18px;
  border-left: 1.5px dashed #1a1a1a;
  transform: translateX(-50%);
}

.exact-text {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
}

/* ===== TIMELINE WRAPPER STYLES ===== */

.timeline-wrapper {
  position: relative;
  overflow-x: auto;
  white-space: nowrap;
}

.timeline {
  display: flex;
  position: relative;
  height: 400px;
  min-width: 1200px;
}

.phase {
  flex: 1 0 300px;
  border-right: 2px solid #000000;
  box-sizing: border-box;
}

.phase h3 {
  border-bottom: 2px solid #000000;
  padding: 10px;
  font-size: 1.1rem;
  margin: 0 0 10px;
  font-weight: bold;
}

.task {
  background-color: #2f441e;
  border: 1px solid #24b400;
  border-radius: 5px;
  font-size: 0.8rem;
  padding: 10px;
  color: white;
  position: absolute;
  white-space: nowrap;
}

.progress-bar-container {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 6px;
  width: 100%;
  background: #111;
}

.progress-bar {
  height: 100%;
  background: limegreen;
  width: 0%;
  transition: width 0.1s;
}

/* ===== RESPONSIVE STYLES ===== */

@media screen and (max-width: 992px) {
  .journey-section .totals {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
  }

  .journey-section .total-card {
    flex: 1 1 calc(50% - 12px);
  }

  .journey-section .team-row {
    overflow: scroll;
  }

  .journey-section .team-row .team-btn {
    white-space: nowrap;
  }

  .journey-section::-webkit-scrollbar {
    display: none;
  }
}

@media screen and (max-width: 576px) {
  .journey-section .totals {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .journey-section .total-card {
    flex: 1 1 100%;
  }

  .journey-section .total-number {
    width: 100%;
    min-width: 100%;
  }

  .journey-section .case-study--header {
    padding-right: 22px;
  }
}

@media (max-width: 1200px) {
  .timeline-container {
    max-width: 100%;
  }
}

/* ===== CASE STUDY HERO TITLE STYLES ===== */

.tp-hero-bs-title-casestudy {
  font-size: 52px;
  font-weight: 700;
  color: var(--tp-common-white);
  letter-spacing: -3px;
  padding-bottom: 30px;
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
  .tp-hero-bs-title-casestudy {
    font-size: 45px;
    padding-bottom: 20px;
  }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .tp-hero-bs-title-casestudy {
    font-size: 42px;
  }
}

@media (max-width: 767px) {
  .tp-hero-bs-title-casestudy {
    font-size: 28px;
    letter-spacing: 1px;
    padding-bottom: 15px;
  }
}
