
#hero-21 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 6rem 0;
  background-size: cover;
  background-position: center;
  text-align: center;
}
#hero-21 .hero-overlay-21 {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
#hero-21 .container {
  position: relative;
  z-index: 2;
}
#hero-21 .hero-content-wrapper-21 {
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}
#hero-21 .hero-title-21 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
#hero-21 .hero-subtitle-21 {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.9;
}
#hero-21 .hero-cta-button-21 {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#hero-21 .hero-cta-button-21:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}
@media (max-width: 767.98px) {
  #hero-21 {
    min-height: 60vh;
    padding: 4rem 0;
  }
  #hero-21 .hero-title-21 {
    font-size: 2.5rem;
  }
  #hero-21 .hero-subtitle-21 {
    font-size: 1.1rem;
  }
}



/* category-posts-4 Styles - Posts Timeline */
#category-posts-4 {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background-color: #f4f6f9; /* A slightly different light background */
}

#category-posts-4 .section-header {
    margin-bottom: 3rem;
    text-align: center;
}

#category-posts-4 .section-header .section-title {
    font-size: 2.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

#category-posts-4 .section-header .section-subtitle {
    font-size: 1.1rem;
    color: #555;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

#category-posts-4 .timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

#category-posts-4 .timeline:before { /* The central line */
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background-color: #007bff; /* Primary color for the line */
    margin-left: -1.5px; /* Half of the width */
    border-radius: 3px;
}

#category-posts-4 .timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
}

#category-posts-4 .timeline-item:nth-child(odd) { /* Left side items */
    left: 0;
    padding-right: 50px; /* Space from the central line */
    text-align: right;
}

#category-posts-4 .timeline-item:nth-child(even) { /* Right side items */
    left: 50%;
    padding-left: 50px; /* Space from the central line */
    text-align: left;
}

/* The circle on the timeline */
#category-posts-4 .timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    border: 4px solid #007bff;
    top: 15px; /* Adjust vertical position of the circle */
    z-index: 1;
}

#category-posts-4 .timeline-item:nth-child(odd)::after {
    right: -10px; /* (Circle width / 2) */
}

#category-posts-4 .timeline-item:nth-child(even)::after {
    left: -10px; /* (Circle width / 2) */
}

#category-posts-4 .timeline-content {
    padding: 20px 25px;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#category-posts-4 .timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}


#category-posts-4 .timeline-date {
    display: block;
    font-size: 1.5rem; /* Larger date */
    font-weight: 700;
    color: #007bff;
    margin-bottom: 5px;
}
#category-posts-4 .timeline-date .year {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
}


#category-posts-4 .timeline-post-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #343a40;
}
#category-posts-4 .timeline-post-title a {
    color: inherit;
    text-decoration: none;
}
#category-posts-4 .timeline-post-title a:hover {
    color: #0056b3;
}

#category-posts-4 .timeline-excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

#category-posts-4 .readmore-btn {
    font-size: 0.85rem;
    font-weight: 500;
}
#category-posts-4 .readmore-btn i {
    margin-left: 5px;
}

/* Pagination Wrapper */
#category-posts-4 .pagination-wrapper {
    margin-top: 1rem; /* Reduced margin as timeline items have bottom margin */
    display: flex;
    justify-content: center;
}

/* Responsive adjustments for timeline */
@media (max-width: 767.98px) {
    #category-posts-4 .timeline:before {
        left: 15px; /* Move line to the left for mobile */
        margin-left: 0;
    }

    #category-posts-4 .timeline-item {
        width: 100%;
        padding-left: 50px; /* Space for content from the line */
        padding-right: 0;
        text-align: left !important; /* Force left align for all items */
        margin-bottom: 30px;
    }

    #category-posts-4 .timeline-item:nth-child(odd),
    #category-posts-4 .timeline-item:nth-child(even) {
        left: 0; /* Align all items to the left of the line */
        padding-left: 50px;
    }

    #category-posts-4 .timeline-item::after {
        left: 5px; /* Adjust circle position (15px line - 10px half circle width) */
    }
    #category-posts-4 .timeline-date {
        font-size: 1.3rem;
    }
    #category-posts-4 .timeline-post-title {
        font-size: 1.15rem;
    }
}



