section {
    padding: 50px 0;
  }
  
  html,
  body {
    overflow-x: hidden;
  }
  
  body {
    font-family: "Montserrat", "Roboto", sans-serif;
    font-size: 17px;
    font-weight: 400;
    background-color: #f8f9fa;
    color: #333;
  }
  
  .timeline {
    position: relative;
    padding: 40px 0;
  }
  .timeline::before {
    content: "";
    background: linear-gradient(to bottom, #7a0b16, #55080f);
    width: 4px;
    height: 95%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(122, 11, 22, 0.3);
  }
  
  .timeline-item {
    width: 100%;
    margin-bottom: 80px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
  }
  
  .timeline-item:nth-child(1) { animation-delay: 0.1s; }
  .timeline-item:nth-child(2) { animation-delay: 0.2s; }
  .timeline-item:nth-child(3) { animation-delay: 0.3s; }
  .timeline-item:nth-child(4) { animation-delay: 0.4s; }
  .timeline-item:nth-child(5) { animation-delay: 0.5s; }
  .timeline-item:nth-child(6) { animation-delay: 0.6s; }
  .timeline-item:nth-child(7) { animation-delay: 0.7s; }
  .timeline-item:nth-child(8) { animation-delay: 0.8s; }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    float: right;
    padding-top: 30px;
  }
  .timeline-item:nth-child(even) .timeline-content .date {
    right: auto;
    left: 0;
  }
  .timeline-item:nth-child(even) .timeline-content::after {
    content: "";
    position: absolute;
    border-style: solid;
    width: 0;
    height: 0;
    top: 30px;
    left: -15px;
    border-width: 10px 15px 10px 0;
    border-color: transparent #ffffff transparent transparent;
  }
  .timeline-item::after {
    content: "";
    display: block;
    clear: both;
  }
  

  .timeline-content p {
    font-family: "Tharlon", "Montserrat", sans-serif;
    font-size: 17px;
    word-wrap: break-word;
    margin-top: 10px;
    line-height: 1.8;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-top: 55px;
    color: #444;
  }
  
  /* If timeline item has an image header, reduce top padding */
  .timeline-content .timeline-img-header ~ p,
  .timeline-content .timeline-img-header-2 ~ p,
  .timeline-content .timeline-img-header-9 ~ p {
    padding-top: 15px;
  }

  .timeline-content {
    position: relative;
    width: 45%;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
  }
  
  .timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
  }

.timeline-content em {
  padding-right: 20px;
  padding-left: 20px;
  padding-top: 10px;
  font-size: 12px;
  color: #888;
  font-style: italic;
  display: block;
  border-top: 1px solid #e0e0e0;
  margin-top: 10px;
}

  .timeline-content::after {
    content: "";
    position: absolute;
    border-style: solid;
    width: 0;
    height: 0;
    top: 30px;
    right: -15px;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent #ffffff;
  }
  
  .timeline-img {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #7a0b16, #55080f);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    margin-top: 25px;
    margin-left: -20px;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(122, 11, 22, 0.4), 0 0 0 4px #f8f9fa;
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .timeline-item:hover .timeline-img {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(122, 11, 22, 0.5), 0 0 0 4px #f8f9fa;
  }
  
  
  .timeline-card {
    padding: 0 !important;
  }
  .timeline-card p {
    padding: 0 20px;
    
  }
  .timeline-card a {
    margin-left: 20px;
  }
  
  /* .timeline-item .timeline-img-header {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4)), url("https://picsum.photos/1000/800/?random") center center no-repeat;
    background-size: cover;
  } */

  .timeline-item .timeline-img-header {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4)), url("images/newbernCity.jpeg") center center no-repeat;
    background-size: cover;
  }

  .timeline-item .timeline-img-header-2 {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4)), url("images/temple-baptist-church-7.jpeg") center center no-repeat;
    background-size: cover;
  }

  .timeline-item .timeline-img-header-9 {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4)), url("images/adeeAndPu.jpg") center center no-repeat;
    background-size: cover;
  }
  
  .timeline-img-header, .timeline-img-header-2, .timeline-img-header-9 {
    height: 220px;
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
  }
  
  .timeline-img-header::before, 
  .timeline-img-header-2::before, 
  .timeline-img-header-9::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
    transition: opacity 0.3s ease;
  }
  
  .timeline-item:hover .timeline-img-header::before,
  .timeline-item:hover .timeline-img-header-2::before,
  .timeline-item:hover .timeline-img-header-9::before {
    opacity: 0.7;
  }
  
  .timeline-img-header h2 {
    color: #ffffff;
    position: absolute;
    bottom: 15px;
    left: 20px;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 600;
  }
  
  blockquote {
    margin-top: 30px;
    color: #757575;
    border-left-color: #b53f66;
    padding: 0 20px;
  }
  
  .date {
    background: linear-gradient(135deg, #7a0b16, #55080f);
    display: inline-block;
    color: #ffffff;
    padding: 12px 20px;
    position: absolute;
    top: 0;
    right: 0;
    font-weight: 600;
    font-size: 16px;
    border-radius: 0 12px 0 12px;
    box-shadow: 0 2px 8px rgba(122, 11, 22, 0.3);
    z-index: 5;
    letter-spacing: 0.5px;
  }
  
  @media screen and (max-width: 768px) {
    .timeline {
      padding: 30px 0;
    }
    
    .timeline::before {
      left: 30px;
      width: 3px;
    }
    
    .timeline .timeline-img {
      left: 30px;
      width: 35px;
      height: 35px;
      margin-left: -17.5px;
      border-width: 3px;
    }
    
    .timeline .timeline-content {
      max-width: calc(100% - 80px);
      width: calc(100% - 80px);
      margin-left: 70px;
      margin-right: 0;
    }
    
    .timeline .timeline-item:nth-child(even) .timeline-content {
      float: none;
      margin-left: 70px;
    }
    
    .timeline .timeline-item:nth-child(even) .timeline-content .date {
      left: auto;
      right: 0;
    }
    
    .timeline .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline .timeline-item:nth-child(even) .timeline-content::after {
      content: "";
      position: absolute;
      border-style: solid;
      width: 0;
      height: 0;
      top: 30px;
      left: -15px;
      border-width: 10px 15px 10px 0;
      border-color: transparent #ffffff transparent transparent;
    }
    
    .timeline-content p {
      font-size: 15px;
      line-height: 1.7;
      padding-left: 15px;
      padding-right: 15px;
      padding-bottom: 15px;
      padding-top: 50px;
    }
    
    .timeline-content .timeline-img-header ~ p,
    .timeline-content .timeline-img-header-2 ~ p,
    .timeline-content .timeline-img-header-9 ~ p {
      padding-top: 15px;
    }
    
    .timeline-img-header, .timeline-img-header-2, .timeline-img-header-9 {
      height: 180px;
    }
    
    .date {
      padding: 10px 16px;
      font-size: 14px;
    }
  }
  
  @media screen and (max-width: 480px) {
    .timeline {
      padding: 20px 0;
    }
    
    .timeline::before {
      left: 20px;
    }
    
    .timeline .timeline-img {
      left: 20px;
      width: 30px;
      height: 30px;
      margin-left: -15px;
    }
    
    .timeline .timeline-content {
      max-width: calc(100% - 60px);
      width: calc(100% - 60px);
      margin-left: 50px;
    }
    
    .timeline .timeline-item:nth-child(even) .timeline-content {
      margin-left: 50px;
    }
    
    .timeline-content p {
      font-size: 14px;
      line-height: 1.6;
      padding-left: 12px;
      padding-right: 12px;
      padding-bottom: 12px;
      padding-top: 45px;
    }
    
    .timeline-content .timeline-img-header ~ p,
    .timeline-content .timeline-img-header-2 ~ p,
    .timeline-content .timeline-img-header-9 ~ p {
      padding-top: 12px;
    }
    
    .timeline-img-header, .timeline-img-header-2, .timeline-img-header-9 {
      height: 150px;
    }
    
    .date {
      padding: 8px 12px;
      font-size: 13px;
    }
  }

  .content h3 {
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-size: 2.5em;
    font-weight: 600;
    color: #333;
    margin: 40px 0 50px 0;
    padding: 0 20px;
    line-height: 1.3;
  }
  
  .content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 5%;
  }

  .hero-text h2 {
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-size: 2.5em;
    font-weight: 500;
    padding: 20px;
    line-height: 1.4;
  }
  
  @media screen and (max-width: 768px) {
    .content h3 {
      font-size: 1.8em;
      margin: 30px 0 40px 0;
    }
    
    .hero-text h2 {
      font-size: 1.8em;
      padding: 15px;
    }
    
    .content {
      padding: 30px 4%;
    }
  }
  
  @media screen and (max-width: 480px) {
    .content h3 {
      font-size: 1.5em;
      margin: 20px 0 30px 0;
    }
    
    .hero-text h2 {
      font-size: 1.4em;
      padding: 10px;
    }
    
    .content {
      padding: 20px 3%;
    }
  }