/* ═══════════════════════════════════════════
   SKELETON LOADING — ResWay
   Import file này vào bất kỳ trang nào cần
═══════════════════════════════════════════ */

/* ── Base shimmer animation ── */
@keyframes skeleton-shimmer {
  0% {
    background-position: -600px 0;
  }
  100% {
    background-position: 600px 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1200px 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}

/* ════════════════════════════════════════
   1. INDEX — Blog grid (3 cards ngang)
════════════════════════════════════════ */
.sk-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .sk-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .sk-blog-grid {
    grid-template-columns: 1fr;
  }
}

.sk-blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.sk-blog-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.sk-blog-card__body {
  padding: 1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sk-blog-card__meta {
  height: 12px;
  width: 80px;
}
.sk-blog-card__title {
  height: 18px;
  width: 100%;
}
.sk-blog-card__title2 {
  height: 18px;
  width: 75%;
}
.sk-blog-card__desc {
  height: 13px;
  width: 100%;
}
.sk-blog-card__desc2 {
  height: 13px;
  width: 85%;
}
.sk-blog-card__link {
  height: 14px;
  width: 70px;
  margin-top: 0.25rem;
}

/* ════════════════════════════════════════
   2. BLOG PAGE — Featured + Grid
════════════════════════════════════════ */

/* Featured (nằm ngang) */
.sk-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .sk-featured {
    grid-template-columns: 1fr;
  }
}

.sk-featured__img {
  width: 100%;
  height: 100%;
  min-height: 260px;
}

.sk-featured__body {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

.sk-featured__cat {
  height: 12px;
  width: 130px;
}
.sk-featured__title {
  height: 26px;
  width: 100%;
}
.sk-featured__title2 {
  height: 26px;
  width: 80%;
}
.sk-featured__desc {
  height: 13px;
  width: 100%;
}
.sk-featured__desc2 {
  height: 13px;
  width: 90%;
}
.sk-featured__desc3 {
  height: 13px;
  width: 70%;
}
.sk-featured__meta {
  height: 12px;
  width: 90px;
  margin-top: 0.25rem;
}
.sk-featured__link {
  height: 14px;
  width: 110px;
  margin-top: 0.5rem;
}

/* Post grid (2 cột) */
.sk-post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .sk-post-grid {
    grid-template-columns: 1fr;
  }
}

.sk-post-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  width: 100%;
  height: 100%;
}

.sk-post-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.sk-post-card__body {
  padding: 1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sk-post-card__meta {
  height: 11px;
  width: 70px;
}
.sk-post-card__title {
  height: 17px;
  width: 100%;
}
.sk-post-card__title2 {
  height: 17px;
  width: 70%;
}
.sk-post-card__desc {
  height: 12px;
  width: 100%;
}
.sk-post-card__desc2 {
  height: 12px;
  width: 80%;
}
.sk-post-card__link {
  height: 13px;
  width: 65px;
  margin-top: 0.25rem;
}

/* ════════════════════════════════════════
   3. SERVICE PAGE — 3-column grid
════════════════════════════════════════ */
.sk-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .sk-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .sk-service-grid {
    grid-template-columns: 1fr;
  }
}

.sk-service-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.sk-service-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.sk-service-card__body {
  padding: 1rem 1.15rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sk-service-card__title {
  height: 17px;
  width: 90%;
}
.sk-service-card__badge {
  height: 22px;
  width: 80px;
  border-radius: 999px;
}
.sk-service-card__meta {
  height: 12px;
  width: 100%;
}
.sk-service-card__meta2 {
  height: 12px;
  width: 75%;
}

.sk-service-card__footer {
  padding: 0.85rem 1.15rem 1.1rem;
}

.sk-service-card__btn {
  height: 42px;
  width: 100%;
  border-radius: 999px;
}
