/* StudyEG Post Card — scoped to .eg-article-card to protect single article styles */
/* Article Card */

.eg-article-card {
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(104,69,30,.10);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 7px 25px rgba(70,48,25,.045);
  transition: transform .35s ease, box-shadow .35s ease;
  display: flex;
  flex-direction: column;
}

.eg-article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 17px 38px rgba(70,48,25,.11);
}

/* Image */

.eg-article-card .eg-article-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #F4EBDD;
}

.eg-article-card .eg-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}

.eg-article-card:hover .eg-article-image img {
  transform: scale(1.055);
}

.eg-article-card .eg-article-image-label {
  position: absolute;
  right: 14px;
  bottom: 13px;
  padding: 7px 12px;
  background: rgba(104,69,30,.92);
  color: #fff;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
}

/* Card Content */

.eg-article-card .eg-article-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 19px 17px;
}

.eg-article-card .eg-article-category {
  color: #B27D36;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 11px;
}

.eg-article-card .eg-article-body h2 {
  margin: 0 0 11px;
  font-size: 16px;
  line-height: 1.85;
  font-weight: 700;
  color: #493018;
}

.eg-article-card .eg-article-body h2 a {
  color: inherit;
  text-decoration: none;
  transition: color .25s ease;
}

.eg-article-card .eg-article-body h2 a:hover {
  color: #B27D36;
}

.eg-article-card .eg-article-excerpt {
  margin: 0 0 19px;
  color: #82786C;
  font-size: 12px;
  line-height: 2;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Author & Date */

.eg-article-card .eg-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid #F1EAE0;
  color: #8C8173;
  font-size: 10px;
}

.eg-article-card .eg-article-author,
.eg-article-card .eg-article-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.eg-article-card .eg-article-meta svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #B27D36;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 580px) {
  .eg-article-card .eg-article-image { aspect-ratio: 16 / 9; }
  .eg-article-card .eg-article-body { padding: 17px 16px 15px; }
  .eg-article-card .eg-article-body h2 { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .eg-article-card, .eg-article-card .eg-article-image img { transition: none !important; }
}
