.work-container{
  display: flex;
  flex-direction: row;
  margin-right: 4rem;
}


img {
  max-width: 100%;
}


.cd-container {
  width: 90%;
  min-width: 900px;
  margin: 0 auto;
}

#work h1 {
  display: inline-block;
  font-size: 60px;
  color: rgb(238,102,170);
  transform: rotate(90deg);
  width: 200px;
  height: 100%;
  margin-top: 10rem;
  white-space: nowrap;
  align-self: flex-start;
  margin-left: 2rem;
}


#cd-timeline {
  position: relative;
  padding: 2em 0;
  margin-top: 2em;
  margin-bottom: 2em;
}

.cd-timeline-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #a39cf4, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
}
.cd-timeline-img img {
  display: block;
  width: 44px;
  height: 44px;
  position: relative;
  left: 50%;
  top: 50%;
  margin-left: -22px;
  margin-top: -22px;
}
.cd-timeline-img.cd-picture {
  background: #fefefe;
}

.cd-timeline-content1 {
  padding: 1.6em;
  width: 45%;
  position: relative;
  margin-left: 60px;
  background: #ffffff;
  border-radius: 0.25em;
  box-shadow: 0 3px 0 #d7e4ed;
}
.cd-timeline-content1::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 100%;
  height: 0;
  width: 0;
  border: 7px solid transparent;
  border-right: 7px solid #ffffff;
}
.cd-timeline-content1 h2 {
  color: rgb(163,156,244);
  font-size: 20px;
  font-size: 1.25rem;
}
.cd-timeline-content1 p, .cd-timeline-content1 .cd-read-more, .cd-timeline-content1 .cd-date {
  font-size: 10px;
}
.cd-date{
  color: #ffffff;
}
.cd-timeline-content1 .cd-date {
  display: inline-block;
}
.cd-timeline-content1 p {
  margin: 1em 0;
  line-height: 1.6;
  font-size: 16px;
  font-size: 1rem;
}
.cd-timeline-content1 .cd-date {
  float: left;
  padding: 0.8em 0;
  opacity: 0.7;
  position: absolute;
  width: 100%;
  left: 122%;
  top: 6px;
  font-size: 16px;
  font-size: 1rem;
}

@media only screen and (min-width: 1170px) {
  .cd-timeline-block:nth-child(even) .cd-timeline-content1 {
    float: right;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content1 .cd-date {
    left: auto;
    right: 122%;
    text-align: right;
  }
}









.cd-timeline-content {
  position: relative;
  margin-left: 60px;
  background: #ffffff;
  border-radius: 0.25em;
  padding: 1em;
  box-shadow: 0 3px 0 #d7e4ed;
}
.cd-timeline-content::after {
  clear: both;
  content: "";
  display: table;
}
.cd-timeline-content h2 {
  color: rgb(163,156,244);
}
.cd-timeline-content p, .cd-timeline-content .cd-read-more, .cd-timeline-content .cd-date {
  font-size: 10px;
}
.cd-date{
  color: #ffffff;
}
.cd-timeline-content .cd-read-more, .cd-timeline-content .cd-date {
  display: inline-block;
}
.cd-timeline-content p {
  margin: 1em 0;
  line-height: 1.6;
}
.cd-timeline-content .cd-read-more {
  float: right;
  padding: 0.8em 1em;
  background: #acb7c0;
  color: #ffffff;
  border-radius: 0.25em;
}
.no-touch .cd-timeline-content .cd-read-more:hover {
  background-color: #bac4cb;
}
.cd-timeline-content .cd-date {
  float: left;
  padding: 0.8em 0;
  opacity: 0.7;
}
.cd-timeline-content::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 100%;
  height: 0;
  width: 0;
  border: 7px solid transparent;
  border-right: 7px solid #ffffff;
}
@media only screen and (min-width: 768px) {
  .cd-timeline-content h2 {
    font-size: 20px;
    font-size: 1.25rem;
  }
  .cd-timeline-content p {
    font-size: 16px;
    font-size: 1rem;
  }
  .cd-timeline-content .cd-read-more, .cd-timeline-content .cd-date {
    font-size: 14px;
    font-size: 0.875rem;
  }
}
@media only screen and (min-width: 1170px) {
  .cd-timeline-content {
    margin-left: 0;
    padding: 1.6em;
    width: 45%;
  }
  .cd-timeline-content::before {
    top: 24px;
    left: 100%;
    border-color: transparent;
    border-left-color: #ffffff;
  }
  .cd-timeline-content .cd-read-more {
    float: left;
  }
  .cd-timeline-content .cd-date {
    position: absolute;
    width: 100%;
    left: 122%;
    top: 6px;
    font-size: 16px;
    font-size: 1rem;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content {
    float: right;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content::before {
    top: 24px;
    left: auto;
    right: 100%;
    border-color: transparent;
    border-right-color: #ffffff;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-read-more {
    float: right;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-date {
    left: auto;
    right: 122%;
    text-align: right;
  }
  .cssanimations .cd-timeline-content.is-hidden {
    visibility: hidden;
  }
  .cssanimations .cd-timeline-content.bounce-in {
    visibility: visible;
    -webkit-animation: cd-bounce-2 0.6s;
    -moz-animation: cd-bounce-2 0.6s;
    animation: cd-bounce-2 0.6s;
  }
}


#cd-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  height: 100%;
  width: 4px;
  background: #d7e4ed;
}
@media only screen and (min-width: 1170px) {
  #cd-timeline {
    margin-top: 3em;
    margin-bottom: 3em;
  }
  #cd-timeline::before {
    left: 50%;
    margin-left: -2px;
  }
}

.cd-timeline-block {
  position: relative;
  margin: 2em 0;
}
.cd-timeline-block::after {
  clear: both;
  content: "";
  display: table;
}

@media only screen and (min-width: 1170px) {
  .cd-timeline-block {
    margin: 4em 0;
  }
  .cd-timeline-block:first-child {
    margin-top: 0;
  }
  .cd-timeline-block:last-child {
    margin-bottom: 0;
  }
}

.cd-timeline-img.cd-picture {
  background: #fefefe;
}
.cd-timeline-img.cd-movie {
  background: #ffffff;
}
.cd-timeline-img.cd-location {
  background: #ffffff;
}
@media only screen and (min-width: 1170px) {
  .cd-timeline-img {
    width: 60px;
    height: 60px;
    left: 50%;
    margin-left: -30px;
  }
}
















.cd-timeline-content2 {
  position: relative;
  margin-left: 60px;
  background: #ffffff;
  border-radius: 0.25em;
  padding: 1em;
  box-shadow: 0 3px 0 #d7e4ed;
}
.cd-timeline-content2::after {
  clear: both;
  content: "";
  display: table;
}
.cd-timeline-content2 h2 {
  color: rgb(163,156,244);
}
.cd-timeline-content2 p, .cd-timeline-content2 .cd-read-more, .cd-timeline-content2 .cd-date {
  font-size: 10px;
}
.cd-date{
  color: #ffffff;
}
.cd-timeline-content2 .cd-read-more, .cd-timeline-content2 .cd-date {
  display: inline-block;
}
.cd-timeline-content2 p {
  margin: 1em 0;
  line-height: 1.6;
}
.cd-timeline-content2 .cd-read-more {
  float: right;
  padding: 0.8em 1em;
  background: #acb7c0;
  color: #ffffff;
  border-radius: 0.25em;
}
.no-touch .cd-timeline-content2 .cd-read-more:hover {
  background-color: #bac4cb;
}
.cd-timeline-content2 .cd-date {
  float: left;
  padding: 0.8em 0;
  opacity: 0.7;
}
.cd-timeline-content2::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 100%;
  height: 0;
  width: 0;
  border: 7px solid transparent;
  border-right: 7px solid #ffffff;
}
@media only screen and (min-width: 768px) {
  .cd-timeline-content2 h2 {
    font-size: 20px;
    font-size: 1.25rem;
  }
  .cd-timeline-content2 p {
    font-size: 16px;
    font-size: 1rem;
  }
  .cd-timeline-content2 .cd-read-more, .cd-timeline-content2 .cd-date {
    font-size: 14px;
    font-size: 0.875rem;
  }
}
@media only screen and (min-width: 1170px) {
  .cd-timeline-content2 {
    margin-left: 0;
    padding: 1.6em;
    width: 45%;
  }
  .cd-timeline-content2::before {
    top: 24px;
    left: 100%;
    border-color: transparent;
    border-left-color: #ffffff;
  }
  .cd-timeline-content2 .cd-read-more {
    float: left;
  }
  .cd-timeline-content2 .cd-date {
    position: absolute;
    width: 100%;
    left: 122%;
    top: 6px;
    font-size: 16px;
    font-size: 1rem;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content2 {
    float: right;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content2::before {
    top: 24px;
    left: auto;
    right: 100%;
    border-color: transparent;
    border-right-color: #ffffff;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content2 .cd-read-more {
    float: right;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content2 .cd-date {
    left: auto;
    right: 122%;
    text-align: right;
  }
  .cssanimations .cd-timeline-content2.is-hidden {
    visibility: hidden;
  }
  .cssanimations .cd-timeline-content2.bounce-in {
    visibility: visible;
    -webkit-animation: cd-bounce-2 0.6s;
    -moz-animation: cd-bounce-2 0.6s;
    animation: cd-bounce-2 0.6s;
  }
}




























@media only screen and (max-width: 768px) {
  .work-container {
      flex-direction: column;
      margin-right: 0;
  }

  .cd-container {
      width: 100%;
      min-width: 0; /* Remove minimum width */
      margin-left: 2rem;
  }

  #work h1 {
      font-size: 30px; /* Smaller font size */
      margin-top: 2rem;
      margin-left: 1rem;
      text-align: center;
      transform: none;
      width: 100%;
  }

  .cd-timeline-img {
      width: 30px; /* Smaller size */
      height: 30px;
      left: -0.8rem;
  }
  .cd-timeline-img img {
      width: 30px;
      height: 30px;
      margin-top: -15px;
      margin-left: -15px;
  }

  .cd-timeline-content,
  .cd-timeline-content1,
  .cd-timeline-content2 {
      width: 70%; /* Full width */
      /* margin-left: 10px; */
      margin-right: 0;
      padding: 1em;
      display: flex;
      flex-direction: column;
      align-items: start;
  }
  .cd-timeline-content::before,
  .cd-timeline-content1::before,
  .cd-timeline-content2::before {
      left: -8px; /* Adjust arrow position */
      border-right: 7px solid transparent; /* Hide right border */
      border-left: 7px solid #ffffff; /* Show left border */
  }

  .cd-timeline-content .cd-date,
  .cd-timeline-content1 .cd-date,
  .cd-timeline-content2 .cd-date {
    color: rgb(192, 103, 103);
    font-size: 1rem;
    position: absolute;
    text-align: center;
  }

  .cd-timeline-content .cd-date,
  .cd-timeline-content2 .cd-date {
    order: 2; /* Place the date after the content */
    position: relative; /* Remove absolute positioning */
    margin-top: 0.5rem; /* Add some margin at the top */
    width: 100%;
    text-align: left; /* Align text to the left */
    padding: 0; /* Adjust padding if necessary */
    color: rgb(0, 0, 0);
    font-size: 1rem;
  }

  .cd-timeline-content h2,
  .cd-timeline-content1 h2,
  .cd-timeline-content2 h2,
  .cd-timeline-content p,
  .cd-timeline-content1 p,
  .cd-timeline-content2 p {
    order: 1; /* Content comes first */
    font-size: 1rem; /* Adjust font size */
  }

  .cd-timeline-content1 .cd-date {
    position: relative; 
    margin-top: 0.5rem; 
    margin-left: 0; /* Resets any left margin */
    width: 100%; /* Ensures it spans the full width of its container */
    text-align: left; /* Aligns text to the left */
    padding: 0; /* Resets padding */
    color: rgb(0, 0, 0); /* Keeps your color styling */
    font-size: 1rem; /* Adjusts font size */
  }

.cd-timeline-content1 .cd-date {
    position: static;
    width: auto;
    left: auto;
    right: auto;
    text-align: left;
    padding: 0.8em 0;
    margin-top: 1em;
    order: 2;
}

#cd-timeline::before {
    left: 0;
    margin-left: 0;
}

.cd-timeline-block {
    margin: 2em 0;
}
}

