@import url('https://fonts.googleapis.com/css2?family=Asap:ital,wght@0,100..900;1,100..900&family=Crimson+Pro:ital,wght@0,200..900;1,200..900&family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Oswald:wght@200..700&family=Overpass:ital,wght@0,100..900;1,100..900&family=Play:wght@400;700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Quicksand:wght@300..700&family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Sacramento&family=Sintony:wght@400;700&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&family=Teko:wght@300..700&family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* Main Wrapper for Timeline Layout */
.clbgd-timeline-wrapper {
    position: relative;
   margin-bottom: 50px;
    max-width: 100% !important;
}
a{
  text-decoration: none !important;
}

.aspect-16-9 { aspect-ratio: 16 / 9; overflow: hidden; }
.aspect-1-1 { aspect-ratio: 1 / 1; overflow: hidden; }

/* The Dot for Timeline */
.clbgd-timeline-dot {
    position: absolute;
    left: 11px;
    width: 100%;
    height: 2px;
    background-color: #007bff;
    top: 0;
    bottom: 0;
    margin: auto;
    z-index: -1;
}

.timeline-item-overlay {
  background: #000000 !important;
  opacity: 0.4 !important;
}
.timeline-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: rgba(0, 0, 0, 0.5);  */

  /* background: rgba(192, 156, 156, 0.5);  */

  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  text-align: center;
  /* opacity: 0; */
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  z-index: -1;
}

.clbgd-timeline-wrapper .row:nth-child(2n) {
    flex-direction: row-reverse;
    margin-top: -10%;
    }
  .clbgd-timeline-wrapper .row:nth-child(2n) .clbgd-timeline-dot {
    left: -11px;
  }
/* Each Post Item in the Timeline */
.clbgd-timeline-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
    width: 100%;
  height: 100%;
  padding-right: 100px;
}
.clbgd-timeline-wrapper .row:nth-child(2n) .clbgd-timeline-item {
    padding-right: 0px;
    padding-left: 100px;

  }
.clbgd-timeline-wrapper::after {
    border-right: 2px solid #007bff;
    content: "";
    width: 2px;
    height: 100%;
    position: absolute;
    left: 0;
    left: 0;
    top: 0;
    right: 0;
    margin: auto;
  }

  .clbgd-timeline-details {
    padding: 26px 28px;
  }
/* Content Section of Each Post */
.clbgd-timeline-content {
    flex: 1;
        position: relative;
        z-index: 1;

}
.clbgd-timeline-wrapper .row:nth-child(2n) .clbgd-timeline-content {
    padding-right: unset;
    margin-right: 0px;

  }

/* Featured Image Styling */
.clbgd-timeline-image img {
    width: 100%;
    /* height: 400px; */
    border-radius: 8px;
    object-fit: cover;
}

/* Post Title Styling */
.clbgd-timeline-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.clbgd-timeline-title a {
    /* color: #007bff; */
    text-decoration: none;
}

.clbgd-timeline-title a:hover {
    color: #0056b3;
}

/* Post Excerpt Styling */
.clbgd-timeline-excerpt {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

/* Meta Info (Date, Author, Comments) */
.clbgd-timeline-meta p {
    font-size: 0.9rem;
    /* color: #777; */
    margin: 5px 0;
}

/* Tags Section */
.clbgd-timeline-tags a {
    font-size: 0.9rem;
    color: #007bff;
    text-decoration: none;
}

.clbgd-timeline-tags a:hover {
    color: #0056b3;
}

/* Read More Button */
.clbgd-timeline-read-more .clbgd-read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #8371F6;
    /* color: white; */
    text-decoration: none;
    border-radius: 4px;
}

.clbgd-timeline-read-more .clbgd-read-more-btn:hover {
    background-color: #8371F6;
    color: white;
}

/* Pagination Styling */
.clbgd-pagination {
    text-align: center;
    margin-top: 20px;
}

.clbgd-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    background-color: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.clbgd-pagination .page-numbers:hover {
    background-color: #007bff;
    color: white;
}

/* Mobile Responsiveness */
@media  (min-width: 768px) and (max-width: 991px) {

    .clbgd-timeline-wrapper .row:nth-child(2n) .clbgd-timeline-item {
        padding-left: 30px;
      }

      .clbgd-timeline-item {
    
        padding-right: 30px;
        margin-bottom: 0;
      }

      .clbgd-timeline-dot{
        left: 11px;
      }
}
@media (max-width: 768px) {
   

 
  

    .clbgd-timeline-content {
        border-left: none; /* Remove the left border on small screens */
    }

}
@media (max-width: 767px){
    .clbgd-timeline-content {
        padding-right: 0;
        margin-bottom: 20px;
      }
      .clbgd-timeline-item {
        padding-right: 0;
      }
      .wp-block-post-content {
        padding: 0 !important;
      }
      .clbgd-timeline-wrapper {
        padding-left: 0;
      }
      .clbgd-timeline-wrapper .row:nth-child(2n) .clbgd-timeline-item {
        padding-left: 0;
      }
      .clbgd-timeline-wrapper .row:nth-child(2n) {
        
      margin-top: 0;
      }
      .clbgd-timeline-wrapper::after{
        display: none
      }
      .clbgd-timeline-dot
    {
        display: none;
    }
      
}

/* for pagination */

.page-numbers.current {
  background-color: #2581f6;
}