
/*--------------------------------------------------------------
# Latest Posts Section
--------------------------------------------------------------*/
.latest-posts {
  --card-radius: 14px;
  --soft-border: color-mix(in srgb, var(--default-color), transparent 85%);
  --soft-shadow: 0 12px 30px color-mix(in srgb, var(--default-color), transparent 92%);
}

.latest-posts .featured-post {
  border-radius: var(--card-radius);
  overflow: hidden;
  position: relative;
  min-height: 420px;
  background-color: var(--surface-color);
  box-shadow: var(--soft-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.latest-posts .featured-post .featured-media {
  height: 100%;
}

.latest-posts .featured-post .featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.4s ease;
  display: block;
}

.latest-posts .featured-post .featured-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--default-color), transparent 70%) 5%, color-mix(in srgb, var(--default-color), transparent 85%) 40%, transparent 75%);
  pointer-events: none;
}

.latest-posts .featured-post .featured-content {
  position: absolute;
  inset-inline: 20px;
  bottom: 18px;
  color: var(--contrast-color);
  z-index: 2;
}

.latest-posts .featured-post .featured-content .date-badge {
  position: absolute;
  top: -14px;
  left: 0;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
  box-shadow: var(--soft-shadow);
}

.latest-posts .featured-post .featured-content .date-badge .day {
  display: block;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
}

.latest-posts .featured-post .featured-content .date-badge .mon {
  display: block;
  font-size: 12px;
  opacity: 0.95;
}

.latest-posts .featured-post .featured-content .cat-badge {
  margin-left: 72px;
  margin-bottom: 10px;
}

.latest-posts .featured-post .featured-content .title {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  margin: 4px 0 10px 72px;
  color: var(--contrast-color);
}

.latest-posts .featured-post .featured-content .excerpt {
  margin: 0 0 14px 72px;
  color: color-mix(in srgb, var(--contrast-color), transparent 10%);
}

.latest-posts .featured-post .featured-content .meta {
  margin-left: 72px;
  margin-bottom: 10px;
}

.latest-posts .featured-post .featured-content .meta i {
  color: var(--accent-color);
  font-size: 16px;
}

.latest-posts .featured-post .featured-content .meta span {
  font-size: 14px;
  color: color-mix(in srgb, var(--contrast-color), transparent 10%);
}

.latest-posts .featured-post .featured-content .meta .sep {
  color: color-mix(in srgb, var(--contrast-color), transparent 20%);
}

.latest-posts .featured-post .featured-content .readmore {
  margin-left: 72px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--contrast-color), transparent 60%);
  color: var(--contrast-color);
  transition: 0.3s;
}

.latest-posts .featured-post .featured-content .readmore i {
  font-size: 16px;
}

.latest-posts .featured-post .featured-content .readmore:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}

.latest-posts .featured-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px color-mix(in srgb, var(--default-color), transparent 88%);
}

.latest-posts .featured-post:hover .featured-media img {
  transform: scale(1.06);
}

@media (max-width: 768px) {
  .latest-posts .featured-post {
    min-height: 360px;
  }

  .latest-posts .featured-post .featured-content .title {
    font-size: 22px;
  }
}

.latest-posts .compact-post {
  background-color: var(--surface-color);
  border: 1px solid var(--soft-border);
  border-radius: var(--card-radius);
  padding: 14px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.latest-posts .compact-post .thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition: transform 0.3s ease;
}

.latest-posts .compact-post .content .meta {
  margin-bottom: 6px;
  font-size: 13px;
  color: color-mix(in srgb, var(--default-color), transparent 45%);
}

.latest-posts .compact-post .content .meta .date,
.latest-posts .compact-post .content .meta .category {
  white-space: nowrap;
}

.latest-posts .compact-post .content .meta .dot {
  margin-inline: 6px;
  color: color-mix(in srgb, var(--default-color), transparent 60%);
}

.latest-posts .compact-post .content .title {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--heading-color);
  transition: color 0.3s ease;
}

.latest-posts .compact-post .content .readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: color-mix(in srgb, var(--heading-color), transparent 20%);
  transition: color 0.3s ease, transform 0.3s ease;
}

.latest-posts .compact-post .content .readmore i {
  font-size: 16px;
}

.latest-posts .compact-post:hover {
  border-color: color-mix(in srgb, var(--accent-color), transparent 30%);
  box-shadow: var(--soft-shadow);
  transform: translateY(-2px);
}

.latest-posts .compact-post:hover .content .title,
.latest-posts .compact-post:hover .content .readmore {
  color: var(--accent-color);
}

.latest-posts .compact-post:hover .thumb img {
  transform: scale(1.03);
}

@media (max-width: 576px) {
  .latest-posts .compact-post {
    grid-template-columns: 90px 1fr;
  }
}

.latest-posts .card-post {
  background-color: var(--surface-color);
  border: 1px solid var(--soft-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.latest-posts .card-post .post-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.latest-posts .card-post .content {
  padding: 18px;
}

.latest-posts .card-post .content .meta {
  margin-bottom: 10px;
}

.latest-posts .card-post .content .meta i {
  color: var(--accent-color);
  font-size: 16px;
}

.latest-posts .card-post .content .meta span {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.latest-posts .card-post .content .title {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--heading-color);
  transition: color 0.3s ease;
}

.latest-posts .card-post .content .readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 40%);
  color: var(--accent-color);
  transition: 0.3s;
}

.latest-posts .card-post .content .readmore i {
  font-size: 16px;
}

.latest-posts .card-post .content .readmore:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 85%);
  border-color: var(--accent-color);
}

.latest-posts .card-post:hover {
  border-color: color-mix(in srgb, var(--accent-color), transparent 25%);
  box-shadow: var(--soft-shadow);
  transform: translateY(-3px);
}

.latest-posts .card-post:hover .post-img img {
  transform: scale(1.06);
}

.latest-posts .card-post:hover .content .title {
  color: var(--accent-color);
}

@media (max-width: 576px) {
  .latest-posts .card-post .post-img img {
    height: 190px;
  }
}

.latest-posts .cat-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1;
  border-radius: 999px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 85%);
  color: var(--accent-color);
}

.latest-posts .cat-badge.inverse {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

/*--------------------------------------------------------------
# Category Postst Section
--------------------------------------------------------------*/
.category-postst article {
  height: 100%;
}

.category-postst .post-img {
  max-height: 440px;
  overflow: hidden;
}

.category-postst .title {
  font-size: 20px;
  font-weight: 700;
  padding: 0;
  margin: 5px 0;
}

.category-postst .title a {
  color: var(--heading-color);
  transition: 0.3s;
}

.category-postst .title a:hover {
  color: var(--accent-color);
}

.category-postst .meta-top {
  margin-top: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.category-postst .meta-top ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
  padding: 0;
  margin: 0;
}

.category-postst .meta-top i {
  font-size: 24px;
  line-height: 0;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.category-postst .meta-top a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 14px;
  display: inline-block;
  line-height: 1;
}
