/* The actual timeline (the vertical ruler) */
.main-timeline-2 {
  position: relative;
}

/* The actual timeline (the vertical ruler) */
.main-timeline-2::after {
  content: "";
  position: absolute;
  width: 3px;
  background-color: #ff4258;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

/* Container around content */
.timeline-2 {
  position: relative;
  background-color: inherit;
  width: 50%;
}

/* The circles on the timeline */
.timeline-2::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  right: -11px;
  background-color: #ff4258;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

/* Place the container to the left */
.left-2 {
  padding: 0px 40px 20px 0px;
  left: 0;
}

/* Place the container to the right */
.right-2 {
  padding: 0px 0px 20px 40px;
  left: 50%;
}

/* Add arrows to the left container (pointing right) */
.left-2::before {
  content: " ";
  position: absolute;
  top: 18px;
  z-index: 1;
  right: 30px;
  border: medium solid white;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent white;
}

/* Add arrows to the right container (pointing left) */
.right-2::before {
  content: " ";
  position: absolute;
  top: 18px;
  z-index: 1;
  left: 30px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent white transparent transparent;
}

/* Fix the circle for containers on the right side */
.right-2::after {
  left: -14px;
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
  /* Place the timelime to the left */
  .main-timeline-2::after {
    left: 31px;
  }

  /* Full-width containers */
  .timeline-2 {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  /* Make sure that all arrows are pointing leftwards */
  .timeline-2::before {
    left: 60px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
  }

  /* Make sure all circles are at the same spot */
  .left-2::after,
  .right-2::after {
    left: 18px;
  }

  .left-2::before {
    right: auto;
  }

  /* Make all right containers behave like the left ones */
  .right-2 {
    left: 0%;
  }
}

/* Initial hidden state */
.animate {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

/* Visible state after scroll */
.fadeInUp1 {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Custom icon colors */
.icon-step-1 {
  color: #f96600;
}

.icon-step-2 {
  color: #007bff;
}

.icon-step-3 {
  color: #28a745;
}

.icon-step-4 {
  color: #dc3545;
}

.icon-step-5 {
  color: #6f42c1;
}

/* Additional styling for the icon size if needed */
.timeline-2 i {
  font-size: 24px;
}

/* Section Title */
.features-area .section-tittle h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #23187d; /* Deep purple */
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Feature Cards */
.single-cat {
  background-color: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
  margin-bottom: 30px;
}

/* Icon Styling */
.cat-icon {
  font-size: 3rem;
  color: #ff4258; /* Warm orange */
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

/* Hover Effects for Icons */
.single-cat:hover .cat-icon {
  color: #22b393; /* Deep purple */
}

/* Text Styling */
.cat-cap h5 a {
  font-size: 1.25rem;
  font-weight: 600;
  color: #23187d; /* Deep purple */
  transition: color 0.3s ease;
}

.cat-cap p {
  font-size: 1.2rem;
  color: #555;
  font-weight: 600;
  line-height: 1.8;
  margin-top: 10px;
}

/* Hover Effects for Feature Title */
.single-cat:hover .cat-cap h5 a {
  color: #f26b02; /* Warm orange */
}

/* Responsive Layout */
@media (max-width: 767px) {
  .features-area .row {
    text-align: center;
  }

  .single-cat {
    margin-bottom: 20px;
  }
}

/* General Section Styling */
.blog_area {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.blog_area .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Blog Left Sidebar */
.blog_left_sidebar {
  padding-right: 30px;
}

.blog_item {
  margin-bottom: 30px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blog_item_img {
  position: relative;
  overflow: hidden;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.blog_item_img img {
  width: 100%;
  height: auto;
}

.blog_item_date {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: rgba(239, 52, 5, 0.6);
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}

.blog_item_date h3 {
  font-size: 2rem;
  margin: 0;
}

.blog_item_date p {
  margin: 0;
  font-size: 0.875rem;
}

/* Blog Details */
.blog_details {
  padding: 20px;
}

.blog-head {
  font-size: 1.75rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.blog-details p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.blog-info-link {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 15px;
}

.blog-info-link li {
  font-size: 0.875rem;
}

.blog-info-link li a {
  color: #999;
  text-decoration: none;
}

.blog-info-link li a:hover {
  color: #e63e00;
}

/* Blog Pagination */
.blog-pagination {
  margin-top: 30px;
}

.page-item .page-link {
  color: #333;
  padding: 10px 15px;
  border-radius: 5px;
  border: 1px solid #ddd;
}

.page-item.active .page-link {
  background-color: #e63e00;
  color: #fff;
}

.page-item .page-link:hover {
  background-color: #f1f1f1;
}

/* Blog Right Sidebar */
.blog_right_sidebar {
  background-color: #fff;
  padding-left: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.single_sidebar_widget {
  margin-bottom: 30px;
}

.search_widget .form-group {
  margin-bottom: 20px;
}

.search_widget .input-group {
  display: flex;
  gap: 10px;
}

.search_widget .form-control {
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
}

.search_widget .btns {
  background-color: #e63e00;
  border: none;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
}

.search_widget .btns i {
  font-size: 1.25rem;
}

.button {
  background-color: #e63e00;
  color: white;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  width: 100%;
  text-align: center;
}

.popular_post_widget .media {
  display: flex;
  align-items: center;
  gap: 20px;
}

.popular_post_widget .media img {
  width: 80px;
  height: 80px;
  border-radius: 5px;
}

.popular_post_widget .media-body a {
  color: #333;
  font-size: 1rem;
  font-weight: 600;
}

.popular_post_widget .media-body p {
  color: #999;
  font-size: 0.875rem;
}

/* Improved Blog Pagination */
.blog-pagination {
  margin-top: 30px;
  text-align: center;
}

.page-item {
  margin: 0 5px;
}

.page-item .page-link {
  background-color: #fff;
  color: #333;
  padding: 12px 18px;
  border: 1px solid #ddd;
  border-radius: 50%;
  font-size: 1rem;
  transition: background-color 0.3s, color 0.3s;
  text-align: center;
  display: inline-block;
}

.page-item .page-link:hover {
  background-color: #e63e00;
  color: #fff;
  border-color: #e63e00;
}

.page-item.active .page-link {
  background-color: #e63e00;
  color: #fff;
  border-color: #e63e00;
  font-weight: bold;
}

.page-item.disabled .page-link {
  background-color: #f1f1f1;
  color: #ccc;
  pointer-events: none;
}

.page-item .page-link i {
  font-size: 1.25rem;
}

/* Previous & Next Buttons Styling */
.page-item .page-link[aria-label="Previous"],
.page-item .page-link[aria-label="Next"] {
  border-radius: 50%;
  padding: 12px 18px;
  background-color: #fff;
  color: #333;
}

.page-item .page-link[aria-label="Previous"]:hover,
.page-item .page-link[aria-label="Next"]:hover {
  background-color: #e63e00;
  color: #fff;
  border-color: #e63e00;
}

.page-item .page-link[aria-label="Previous"] {
  margin-right: 5px;
}

.page-item .page-link[aria-label="Next"] {
  margin-left: 5px;
}

/* Blog Right Sidebar */
.blog_right_sidebar {
  background-color: #fff;
  padding-left: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding-top: 20px;
}

/* Single Sidebar Widget */
.single_sidebar_widget {
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 8px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.single_sidebar_widget:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Search Widget */
.search_widget .form-group {
  margin-bottom: 20px;
}

.search_widget .input-group {
  display: flex;
  gap: 10px;
}

.search_widget .form-control {
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ddd;
}

.search_widget .btns {
  background-color: #e63e00;
  border: none;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.search_widget .btns:hover {
  background-color: #d13a00;
}

.search_widget .btns i {
  font-size: 1.25rem;
}

/* Popular Post Widget */
.popular_post_widget .media {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}

.popular_post_widget .media img {
  width: 80px;
  height: 80px;
  border-radius: 5px;
}

.popular_post_widget .media-body a {
  color: #333;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.popular_post_widget .media-body a:hover {
  color: #e63e00;
}

.popular_post_widget .media-body p {
  color: #999;
  font-size: 0.875rem;
}

/* Widget Title Styling */
.widget_title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #e63e00;
  padding-bottom: 10px;
}

/* Improved Sidebar Button */
.button {
  background-color: #e63e00;
  color: white;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  width: 100%;
  text-align: center;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #d13a00;
}
