/* Time Completion Section */
.time-completion-section {
  border-radius: 20px;
  background: #73891f;
  padding: 30px;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.time-completion-header {
  margin-bottom: 130px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}

.completion-tag {
  color: #086f31;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  border-radius: 20px;
  background: #d0e7ce;
  display: inline-flex;
  padding: 8px 10px;
}

.completion-title {
  color: #fff;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  line-height: normal;
}

/* Timeline Layout */
.timeline-container {
  position: relative;
  /* max-width: 1000px; */
  margin: 0 auto;
  /* padding: 20px 0; */
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  border-left: 2px dotted rgba(255, 255, 255, 0.7);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
  position: relative;
}

/* Connecting horizontal lines between icon and image/card */
.timeline-row::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 1px;
  background-color: #fff;
  width: calc(20% - 50px);
  z-index: 1;
}

.timeline-row.card-with-image::after {
  top: 20%;
}
.timeline-row.card-with-image::before {
  top: 20%;
}
.timeline-row .timeline-icon {
  top: 20%;
}

.timeline-row-even::after {
  left: 50%;
}

.timeline-row-odd::after {
  right: 50%;
}

/* Background half-circle elements */
.timeline-row::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 107px;
  height: 214px;
  background-image: url("/wp-content/uploads/2026/08/Subtract.png");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

.timeline-row-even::before {
  right: 50%;
  transform: translateY(-50%);
  background-position: right center;
}

.timeline-row-odd::before {
  left: 50%;
  transform: translateY(-50%) scaleX(-1);
  background-position: left center;
}

.timeline-row:last-child {
  margin-bottom: 0;
}

.timeline-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  background-color: #273b7a; /* Dark Blue circle */
  border: 6px solid #abc337; /* Lime Green border from screenshot */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.timeline-icon img {
  max-width: 24px;
  height: auto;
  object-fit: contain;
}

.timeline-col {
  width: calc(50% - 65px);
  z-index: 2; /* Ensure columns stay above the background half-circle */
}

.timeline-media-wrap{display: flex; justify-content: flex-end;}
.timeline-col-right .timeline-media-wrap{justify-content: flex-start;}

.timeline-col-left {
  text-align: right;
}

.timeline-col-right {
  text-align: left;
}

/* Repeating background flowers on each row */
.timeline-row-even .timeline-col-left::before {
  content: "";
  position: absolute;
  left: -200px;
  top: 50%;
  transform: translateY(-50%);
  width: 295px;
  height: 295px;
  /* background-image: url("https://pdopdev.wpenginepowered.com/wp-content/uploads/2026/06/bg-flower.png"); */
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.timeline-row-odd .timeline-col-right::before {
  content: "";
  position: absolute;
  right: -200px;
  top: 50%;
  transform: translateY(-50%) rotate(179deg);
  width: 295px;
  height: 295px;
  /* background-image: url("https://pdopdev.wpenginepowered.com/wp-content/uploads/2026/06/bg-flower.png"); */
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

/* Text and Media Elements */
.timeline-date {
  color: #fff;
  font-size: 40px;
  font-weight: 800;
  line-height: normal;
  text-transform: uppercase;
}

.timeline-desc-box {
  position: relative;
  padding: 20px;
  border-radius: 20px;
  background: #fff3df;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
  color: #000;
  font-size: 18px;
  font-weight: 400;
  line-height: normal;
  overflow: hidden;
}
.timeline-desc-box::before {
  content: "";
  position: absolute;
  top: 0;
  right: -18px;
  width: 108px;
  height: 96px;
  background-image: url("https://pdopdev.wpenginepowered.com/wp-content/uploads/2026/06/card-bg.png");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

/* Keep text left-aligned inside the text wrapper */
.timeline-row-even .timeline-col-left .timeline-text-wrap {
  text-align: right;
  gap: 15px;
  display: flex;
  flex-direction: column;
}
.timeline-row-odd .timeline-col-right .timeline-text-wrap {
  text-align: left;
  gap: 15px;
  display: flex;
  flex-direction: column;
}

.timeline-media-wrap img {
  max-width: 100%;
  height: 100%;
  border-radius: 12px;
  box-shadow: 6px 6px 0px #f9ac1b; /* Orange shadow offset */
  display: block;
  object-fit: cover;
}

/* Card with Image layout */
.timeline-card-wrap {
  background-color: #fff3df;
  border-radius: 15px;
  padding: 25px 20px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  overflow: hidden;
}

.timeline-card-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: -18px;
  width: 108px;
  height: 96px;
  background-image: url("https://pdopdev.wpenginepowered.com/wp-content/uploads/2026/06/card-bg.png");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}
.timeline-card-wrap .card-top-date {
  color: #000;
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
}

.timeline-card-wrap .card-image img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  box-shadow: 5px 5px 0px #f9ac1b;
  margin-bottom: 25px;
  display: block;
}
.timeline-card-wrap .card-image {
  width: 269px;
  height: 183px;
}
.timeline-card-wrap .card-heading {
  color: #000;
  font-size: 20px;
  font-weight: 600;
  line-height: normal;
}

.timeline-card-wrap .card-desc {
  color: #000;
  font-size: 16px;
  line-height: normal;
}
.timeline-card-wrap .card-desc p {
  margin: 0;
}

.timeline-card-wrap .card-desc ul {
  margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column !important;
    gap: 15px;
    margin-left: 22px;
}
.timeline-card-wrap .card-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}
.timeline-card-wrap .card-desc li {
  margin-bottom: 0;
}

.timeline-card-wrap .card-tag {
  margin-bottom: 0;
}

.card-tag span {
  border-radius: 20px;
  background: #d0e7ce;
  color: #086f31;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 10px;
  display: inline-block;
}

.card-btn a {
  color: #2b3c73;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  gap: 10px;
  align-items: center;
  transition: all 0.3s ease;
}

.card-btn a:hover {
  text-decoration: underline;
  color: #263d82;
}
.card-btn a img {
  transition: ease;
  transition-duration: 400ms;
}
.card-btn a:hover img {
  transform: translateX(8px);
  transition: ease;
  transition-duration: 400ms;
}
.timeline-media-wrap {
  width: 100%;
  height: 333px;
}

/* Responsive Styles */

@media screen and (min-width: 320px) and (max-width: 576.98px) {
  .completion-title {
    font-size: 25px;
  }
  .timeline-icon {
    width: 30px;
    height: 30px;
  }
  .time-completion-section {
    padding: 50px 15px;
  }
  .timeline-icon {
    left: 10px;
  }
  .timeline-line {
    left: 10px;
  }
  .timeline-row {
    align-items: flex-start;
    padding-left: 30px;
    margin-bottom: 60px;
  }
  .timeline-date {
    font-size: 25px;
  }
  .timeline-row.timeline-row-even {
    flex-direction: column;
    gap: 20px;
  }
  .timeline-row.timeline-row-odd {
    flex-direction: column-reverse!important;
    gap: 20px;
  }
  .card-image {
    width: 170px;
    height: 150px;
  }
  .timeline-media-wrap {
    width: 100%;
    height: auto;
  }
  .time-completion-section::before,
  .time-completion-section::after {
    display: none;
  }

  .timeline-row::after,
  .timeline-row::before,
  .timeline-row-even .timeline-col-left::before,
  .timeline-row-odd .timeline-col-right::before {
    display: none !important;
  }

  .timeline-col {
    width: 100%;
    text-align: left !important;
  }

  .timeline-row-even .timeline-col-left .timeline-text-wrap,
  .timeline-row-odd .timeline-col-right .timeline-text-wrap {
    text-align: left;
  }

  .timeline-col-left {
    order: 1;
  }

  .timeline-col-right {
    order: 2;
  }

  .timeline-desc-box {
    max-width: 100%;
  }
}

@media screen and (min-width: 577px) and (max-width: 768.98px) {
  .completion-title {
    font-size: 25px;
  }
  .timeline-icon {
    width: 30px;
    height: 30px;
  }
  .time-completion-section {
    padding: 50px 15px;
  }
  .timeline-icon {
    left: 10px;
  }
  .timeline-line {
    left: 10px;
  }
  .timeline-row {
    align-items: flex-start;
    padding-left: 30px;
    margin-bottom: 60px;
  }
  .timeline-date {
    font-size: 25px;
  }
  .timeline-row.timeline-row-even {
    flex-direction: column;
    gap: 20px;
  }
  .timeline-row.timeline-row-odd {
    flex-direction: column-reverse !important;
    gap: 20px;
  }
  .card-image {
    width: 170px;
    height: 150px;
  }
  .timeline-media-wrap {
    width: 100%;
    height: auto;
  }
  .time-completion-section::before,
  .time-completion-section::after {
    display: none;
  }

  .timeline-row::after,
  .timeline-row::before,
  .timeline-row-even .timeline-col-left::before,
  .timeline-row-odd .timeline-col-right::before {
    display: none !important;
  }

  .timeline-col {
    width: 100%;
    text-align: left !important;
  }

  .timeline-row-even .timeline-col-left .timeline-text-wrap,
  .timeline-row-odd .timeline-col-right .timeline-text-wrap {
    text-align: left;
  }

  .timeline-col-left {
    order: 1;
  }

  .timeline-col-right {
    order: 2;
  }

  .timeline-desc-box {
    max-width: 100%;
  }
}

@media screen and (min-width: 769px) and (max-width: 991.98px) {
  
  .completion-title {
    font-size: 25px;
  }
  .timeline-icon {
    width: 30px;
    height: 30px;
  }
  .time-completion-section {
    padding: 50px 15px;
  }
  .timeline-icon {
    left: 10px;
  }
  .timeline-line {
    left: 10px;
  }
  .timeline-row {
    align-items: flex-start;
    padding-left: 30px;
    margin-bottom: 60px;
  }
  .timeline-date {
    font-size: 25px;
  }
  .timeline-row.timeline-row-even {
    flex-direction: column;
    gap: 20px;
  }
  .timeline-row.timeline-row-odd {
    flex-direction: column-reverse !important;
    gap: 20px;
  }
  .card-image {
    width: 170px;
    height: 150px;
  }
  .timeline-media-wrap {
    width: 100%;
    height: auto;
  }
  .time-completion-section::before,
  .time-completion-section::after {
    display: none;
  }

  .timeline-row::after,
  .timeline-row::before,
  .timeline-row-even .timeline-col-left::before,
  .timeline-row-odd .timeline-col-right::before {
    display: none !important;
  }

  .timeline-col {
    width: 100%;
    text-align: left !important;
  }

  .timeline-row-even .timeline-col-left .timeline-text-wrap,
  .timeline-row-odd .timeline-col-right .timeline-text-wrap {
    text-align: left;
  }

  .timeline-col-left {
    order: 1;
  }

  .timeline-col-right {
    order: 2;
  }

  .timeline-desc-box {
    max-width: 100%;
  }
  
}
@media screen and (min-width: 1025px) and (max-width: 1299.98px) {
  
  .completion-title {
    font-size: 25px;
  }
  .timeline-icon {
    width: 30px;
    height: 30px;
  }
  .time-completion-section {
    padding: 50px 15px;
  }
  .timeline-icon {
    left: 10px;
  }
  .timeline-line {
    left: 10px;
  }
  .timeline-row {
    align-items: flex-start;
    padding-left: 30px;
    margin-bottom: 60px;
  }
  .timeline-date {
    font-size: 25px;
  }
  .timeline-row.timeline-row-even {
    flex-direction: column;
    gap: 20px;
  }
  .timeline-row.timeline-row-odd {
    flex-direction: column-reverse !important;
    gap: 20px;
  }
  .card-image {
    width: 170px;
    height: 150px;
  }
  .timeline-media-wrap {
    width: 100%;
    height: auto;
  }
  .time-completion-section::before,
  .time-completion-section::after {
    display: none;
  }

  .timeline-row::after,
  .timeline-row::before,
  .timeline-row-even .timeline-col-left::before,
  .timeline-row-odd .timeline-col-right::before {
    display: none !important;
  }

  .timeline-col {
    width: 100%;
    text-align: left !important;
  }

  .timeline-row-even .timeline-col-left .timeline-text-wrap,
  .timeline-row-odd .timeline-col-right .timeline-text-wrap {
    text-align: left;
  }

  .timeline-col-left {
    order: 1;
  }

  .timeline-col-right {
    order: 2;
  }

  .timeline-desc-box {
    max-width: 100%;
  }
  
}

/* Responsive Timeline -> Single Column Layout (From Projects Single View) */
/* @media (max-width: 900px) {
  .timeline-line {
    left: 20px;
    transform: none;
  }
  .timeline-icon {
    left: 20px;
    transform: translateX(-50%);
  }
  .timeline-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-bottom: 40px;
    padding-left: 50px;
    box-sizing: border-box;
  }
  .timeline-col {
    width: 100% !important;
    padding: 0 !important;
    text-align: left !important;
    display: block !important;
  }
  .timeline-col-left {
    margin-bottom: 16px;
  }
  .timeline-desc-box,
  .timeline-media-wrap,
  .timeline-card-wrap {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .time-completion-section {
    padding: 24px 16px;
  }
  .completion-title {
    font-size: 22px;
    margin-bottom: 30px;
  }
} */
