main {
  background: #f9f6ee;
}
.main-primary {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.main-primary .img-banner-cateogry {
  height: 350px;
  width: 100%;
  object-fit: cover;
  position: relative;
}

/* About Us Section */

.banner-img-cateogry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
}

.title-cateogry {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 800px;
  margin-top: 24px;
  font-size: 58px;
  color: white;
}

.container-content-post {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 48px;
  padding-bottom: 32px;
}

.content-post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background-color: white;
}
.container-img-post {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.content-post:hover .img-post {
  transform: scale(1.05);
}

.img-post {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: 0.3s all ease;
}
.content {
  padding: 12px;
  padding-bottom: 24px;
}
.title-post {
  font-size: 18px !important;
  font-weight: 600;
  margin-top: 12px;
}
.excerpt-post {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
  max-height: 3rem;
}

.readmore-post {
  padding: 8px 20px;
  width: max-content;
  background-color: var(--primary-color);
  color: white;
  border-radius: 25px;
  margin-top: 12px;
  cursor: pointer;
  border: 1px solid var(--primary-color);
  transition: all 0.3s ease;
}

.readmore-post:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.readmore-post i {
  margin-left: 4px;
  transition: all 0.3s ease;
}

.readmore-post:hover i {
  transform: translateX(4px);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 48px;
}

.page-numbers {
  padding: 8px 16px;
  color: var(--primary-color);
  transition: all 0.3s ease;
  opacity: 0.5;
  font-size: 20px;
  width: 60px;
  text-align: center;
}

.page-numbers:hover {
  opacity: 0.8;
}

.current {
  opacity: 1;
}

.page-numbers:not(:last-child) {
  border-right: 1px solid var(--primary-color);
}

@media (max-width: 1024px) {
  .container-content-post {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .container-content-post {
    grid-template-columns: repeat(1, 1fr);
  }
}
