.popular-post-wrapper {
  background: #ffffff;
  padding: 40px;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.popular-post-title {
  font-size: 30px !important;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 30px;
  padding-left: 0;
  grid-column: 1 / -1;
}

.popular-post-item {
  display: flex;
  flex-direction: column;
  border-radius: 15px; /* GOLDEN radius */
  overflow: hidden;
  padding: 0;
  margin-bottom: 0;
  background-color: #ffffff;
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.05); /* GOLDEN default */
  transition: all 0.3s ease;
  height: 100%;
  border: none;
}

.popular-post-item:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15); /* GOLDEN hover */
  z-index: 2;
}

.popular-post-image-web {
  flex: 0 0 auto;
  height: 260px;
  border-radius: 15px 15px 0 0; /* GOLDEN */
  overflow: hidden;
  background-color: transparent;
  width: 100%;
  position: relative;
  display: flex;
  align-items: stretch;
}

@media (max-width: 767px) {
.popular-post-image-web {
  height: 180px;
  }

}

.popular-post-image-web a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 3;
}

.popular-post-image-web img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  margin: 0;
  padding: 0;
  border-radius: 15px 15px 0 0; /* GOLDEN */
  transition: transform 0.3s ease; /* GOLDEN */
}

.popular-post-image-web:hover img {
  transform: scale(1.05); /* GOLDEN */
}

.popular-post-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.popular-post-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.popular-post-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 3;
}

.popular-post-content h3 a {
  color: inherit;
  text-decoration: none !important;
  transition: color 0.3s ease;
  pointer-events: auto; /* GOLDEN */
}

.popular-post-content h3 a:hover {
  color: #3275cc;
  text-decoration: underline; /* GOLDEN */
}

.popular-post-category {
  display: inline-block;
  padding: 4px 12px;
  background-color: #f0f7ff;
  color: #3174cb;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
  z-index: 3;
}

.popular-post-category:hover {
  background-color: #3174cb;
  color: #ffffff;
}

.popular-post-excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popular-post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 0px solid #f0f0f0;
}

.popular-post-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #666;
  font-size: 13px;
  margin-top: auto;
  position: relative;
  z-index: 3;
}

.post-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #666;
  font-size: 13px;
}

.post-rating .star {
  color: #ffa41c;
  font-size: 15px;
}

.post-rating .rating-value {
  font-weight: 500;
}

.author-meta, .date-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 3;
}

.author-meta i, .date-meta i {
  font-size: 14px;
  color: #3174cb;
}

.author-meta a {
  color: #3174cb;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.author-meta a:hover {
  text-decoration: underline;
}

.popular-post-readmore {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background-color: #3174cb;
  color: #ffffff;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.popular-post-readmore:hover {
  background-color: #2661b1;
  transform: translateX(3px);
}

.popular-post-image-mobile {
  display: none;
  line-height: 0;
  font-size: 0;
}

.popular-post-image-mobile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: top;
}

@media (max-width: 768px) {
  .popular-post-wrapper {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
    border-radius: 0px !important;
  }

  .popular-post-item {
    border-radius: 15px !important; /* GOLDEN mobile */
  }

  .popular-post-image-web {
    background-color: transparent;
  }

  .popular-post-content {
    padding: 15px;
  }

  .popular-post-content h3 {
    font-size: 16px;
    z-index: 3;    
  }

  .popular-post-meta {
    flex-wrap: wrap;
    gap: 10px;
    z-index: 3;
  }

  .popular-post-image-mobile {
    display: block;
    width: 100%;
    height: 220px;
    border-radius: 0px;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: transparent;
    z-index: 3;
  }

  .popular-post-image-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
  }

  .popular-post-image-web {
    display: none;
  }

  .popular-post-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .post-rating {
    font-size: 12px;
  }

  .post-rating .star {
    font-size: 14px;
  }
}

.popular-post-meta a {
  text-decoration: none !important;
  color: inherit;
  transition: opacity 0.2s ease;
}

.popular-post-meta a:hover {
  opacity: 0.8;
}

.popular-post-item a {
  text-decoration: none !important;
}

.author-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.author-meta i {
  font-size: 14px;
}
.popular-post-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
    vertical-align: middle;
}

.popular-post-category a {
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.popular-post-category a:hover {
    text-decoration: underline;
}
.popular-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    cursor: pointer;
}

.popular-post-meta .author-meta {
    position: relative;
    z-index: 2;
}