.most-accessed-posts-widget {
  padding: 15px 30px;
  margin: 0 auto;
  max-width: 1200px;
}

.most-accessed-posts-widget-title {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  margin-left: 1rem;
}

.most-accessed-posts-widget-container h2 {
  font-size: 5vh;
  background: linear-gradient(90deg, #26c997 0%, #015caf 70%);
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--main-font-family);
  font-style: normal;
  font-weight: 600;
  margin-left: 1vw;
  line-height: 45px;
}

.most-accessed-posts-widget-container svg {
  height: 5vh;
  width: 5vw;
}

.most-accessed-posts-widget-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.most-accessed-post-widget-item {
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.most-accessed-post-widget-item:hover {
  transform: scale(1.02);
}

.most-accessed-post-widget-item a img {
  width: 100%;
  height: 150px;
  border-radius: 20px;
  object-fit: cover;
}

.post-widget-meta {
  font-family: var(--secondary-font-family);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box; /* Use Flexbox-like display to handle ellipsis */
  -webkit-line-clamp: 1; /* Show only 1 line of text before ellipsis */
  -webkit-box-orient: vertical;
  white-space: normal; /* Allow the text to wrap and not force single-line */
}

.post-widget-meta a {
  font-family: var(--secondary-font-family);
  color: var(--main-green-color);
  cursor: default;
  font-weight: 500;
}

.post-widget-meta a:visited {
  text-decoration: none;
}

.most-accessed-post-widget-item .post-details {
  padding: 10px 0;
}

.most-accessed-post-widget-item h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  color: var(--main-title-color);
  max-height: 4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
}

.most-accessed-post-widget-item h3:hover {
  opacity: 0.9;
}

.most-accessed-post-widget-item p {
  font-size: 1rem;
  color: #555;
  max-height: 100px;
  height: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  white-space: normal;
}

.most-accessed-post-widget-item .read-more {
  color: #35b365;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
}

.most-accessed-post-widget-item .read-more:hover {
  color: #0269c9;
}

.most-accessed-posts-grid-button {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.access-blog-button {
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding: 2rem;
  gap: 16px;
  border: 2px solid var(--main-title-color);
  border-radius: 5.12098px;
  color: var(--main-title-color);
  background-color: white;
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-size: 1rem;
  line-height: 12px;
  align-items: center;
  text-align: center;
  margin-top: 2rem;
  text-transform: uppercase;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.access-blog-button:hover {
    transform: scale(1.02);
    opacity: 0.9;
    cursor: pointer;
}

.access-blog-button svg {
  width: 12.29px;
  height: 11.7px;
}

@media (max-width: 768px) {
  .most-accessed-posts-widget-grid {
    grid-template-columns: 1fr;
  }

  
}

@media (max-width: 500px) {
  .most-accessed-posts-widget-container svg {
    height: 10vh;
    width: 21vw;
  }

  .access-blog-button svg {
    width: 12.29px;
    height: 11.7px;
  }
  
}
