/* Section Title Styling */
span.eact-section-title {
  color: #000;
  font-family: "Hind Siliguri", Sans-serif;
  font-size: 30px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}
span.eact-section-title-before {
  background-color: #efefef;
  display: block;
  width: 100%;
  height: 3px;
  position: absolute;
  bottom: 0;
  left: 0;
}
span.eact-section-title-after {
  background-color: #bb1919;
  display: block;
  width: 50px;
  height: 3px;
  position: absolute;
  bottom: 0;
  left: 0;
  transform: translateX(0);
}
/* Widget Title Styling */
h4.eact-widget-title {
  position: relative;
  margin: 0 0 15px;
  padding-bottom: 10px;
  line-height: 1.2;
}
/* Grid Layout */
.eact-grid-wrap.grid-layout.has-background {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  border-radius: 5px;
  padding: 0;
  margin: 0;
}
/* Grid Item */
.eact-posts-grid-post-items {
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  flex: 1 1 calc(33.33% - 20px);
  /* 3 items per row with gap */
  max-width: calc(33.33% - 20px);
  background: #fff;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.eact-posts-grid-post-items:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
/* Image Wrapper */
.eact-img-wrapper {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #efefef;
  position: relative;
  display: block;
}
.eact-img-wrapper a {
  display: block;
  height: 100%;
  width: 100%;
}
.eact-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.eact-img-wrapper:hover img {
  transform: scale(1.05);
}
/* Content Wrapper */
.eact-content-wrapper {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eact-content-wrapper h4 {
  font-size: 20px;
  margin: 0;
  color: #000;
  font-family: "Hind Siliguri", Sans-serif;
  font-weight: 700;
}
.eact-content-wrapper a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}
.eact-content-wrapper a:hover {
  color: #000;
}
/* Pagination Container */
.eact-pagination {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  padding: 10px 0;
}
.eact-pagination ul {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.eact-pagination li {
  display: inline;
}
.eact-pagination a, 
.eact-pagination span {
  display: block;
  padding: 8px 15px;
  border-radius: 5px;
  background-color: #efefef;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-right: 5px;
}
.eact-pagination a:hover, .eact-pagination .current,
.eact-pagination a.prev.page-numbers:hover,
.eact-pagination a.next.page-numbers:hover {
  background-color: #bb1919;
  color: #fff;
}
.eact-pagination .current {
  font-weight: bold;
  pointer-events: none;
}
.eact-pagination a.prev.page-numbers,
.eact-pagination a.next.page-numbers {
  background: #ccc;
  color: #000;
}
/* Responsive Styles */
@media screen and (max-width: 768px) {
  .eact-pagination a, .eact-pagination span {
    padding: 6px 12px;
  }
}

@media screen and (max-width: 480px) {
  .eact-pagination ul {
    gap: 5px;
  }
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
  .eact-posts-grid-post-items {
    flex: 1 1 calc(50% - 20px);
    /* 2 items per row */
    max-width: calc(50% - 20px);
  }

  span.eact-section-title {
    font-size: 26px;
  }
}

@media screen and (max-width: 768px) {
  .eact-posts-grid-post-items {
    flex: 1 1 calc(100% - 20px);
    /* 1 item per row */
    max-width: calc(100% - 20px);
  }

  span.eact-section-title {
    font-size: 22px;
  }

  h4.eact-widget-title {
    font-size: 18px;
  }
}

@media screen and (max-width: 480px) {
  .eact-grid-wrap {
    padding: 10px;
  }

  span.eact-section-title {
    font-size: 20px;
  }

  .eact-content-wrapper {
    padding: 10px;
    gap: 5px;
  }

  .eact-content-wrapper h4 {
    font-size: 16px;
  }
}