.ec-post-grid-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 32px 0;
}

.ec-post-card {
  background: #111827;
  border: 0.5px solid #1e2535;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.ec-post-card:hover {
  border-color: #2d8cff;
  transform: translateY(-3px);
}

.ec-card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1a2235;
}

.ec-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ec-post-card:hover .ec-card-image img {
  transform: scale(1.04);
}

.ec-card-image .ec-cat-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
}

.ec-card-no-thumb {
  width: 100%;
  height: 100%;
  background: #1a2235;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: #2d3a50;
  text-transform: uppercase;
}

.ec-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ec-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ec-card-title a {
  color: #e2e8f0;
  text-decoration: none;
}

.ec-card-title a:hover { color: #2d8cff; }

.ec-card-excerpt {
  font-size: 13px;
  color: #8892a4;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.ec-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 0.5px solid #1e2535;
  margin-top: auto;
}

.ec-card-author {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #8892a4;
}

.ec-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.ec-card-info {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: #4a5568;
}

/* --- Spotlight --- */
.ec-spotlight { padding: 40px 0; border-bottom: 0.5px solid #1e2535; }

.ec-spotlight-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

.ec-spotlight-main-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 16px;
}

.ec-spotlight-main-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}

.ec-spotlight-main-card:hover .ec-spotlight-main-img img { transform: scale(1.03); }

.ec-spotlight-main-img .ec-cat-badge {
  position: absolute; bottom: 12px; left: 12px; z-index: 2;
}

.ec-spotlight-main-body h2 {
  font-size: 22px; font-weight: 700; line-height: 1.35; margin: 10px 0 8px;
}

.ec-spotlight-main-body h2 a { color: #fff; text-decoration: none; }
.ec-spotlight-main-body h2 a:hover { color: #2d8cff; }

.ec-spotlight-main-body p { font-size: 14px; color: #8892a4; line-height: 1.65; }

.ec-spotlight-side {
  display: flex; flex-direction: column; gap: 0;
  border-left: 0.5px solid #1e2535;
  padding-left: 24px;
}

.ec-spotlight-side-card {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 0.5px solid #1e2535;
}

.ec-spotlight-side-card:last-child { border-bottom: none; }

.ec-spotlight-side-img {
  width: 90px; flex-shrink: 0;
  aspect-ratio: 4/3; overflow: hidden; border-radius: 6px;
}

.ec-spotlight-side-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}

.ec-spotlight-side-card:hover .ec-spotlight-side-img img { transform: scale(1.05); }

.ec-spotlight-side-body { flex: 1; }

.ec-spotlight-side-body h3 {
  font-size: 13px; font-weight: 600; line-height: 1.45; margin: 5px 0 6px;
}

.ec-spotlight-side-body h3 a { color: #e2e8f0; text-decoration: none; }
.ec-spotlight-side-body h3 a:hover { color: #2d8cff; }

/* --- Trending --- */
.ec-trending-section { padding: 40px 0; border-bottom: 0.5px solid #1e2535; }

.ec-trending-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0;
}

.ec-trending-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 0.5px solid #1a2030;
}

.ec-trending-card:last-child { border-bottom: none; }

.ec-trending-num {
  font-size: 32px;
  font-weight: 900;
  color: #1e2535;
  min-width: 44px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ec-trending-content { flex: 1; }

.ec-trending-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  margin: 4px 0 6px;
}

.ec-trending-title a { color: #e2e8f0; text-decoration: none; }
.ec-trending-title a:hover { color: #2d8cff; }

.ec-trending-thumb {
  width: 80px;
  flex-shrink: 0;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 6px;
}

.ec-trending-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* --- Bottom Grid --- */
.ec-bottom-wrap { padding: 40px 0 60px; }
.ec-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.ec-bottom-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 16px; }

/* --- Latest Section --- */
.ec-latest { padding: 40px 0; border-bottom: 0.5px solid #1e2535; }

/* Responsive */
@media (max-width: 1023px) {
  .ec-post-grid-wrap { grid-template-columns: repeat(2, 1fr); }
  .ec-spotlight-grid { grid-template-columns: 1fr; }
  .ec-spotlight-side { border-left: none; padding-left: 0; border-top: 0.5px solid #1e2535; padding-top: 20px; margin-top: 20px; }
  .ec-bottom-grid { grid-template-columns: 1fr; }
  .ec-bottom-sidebar { position: static; }
}

@media (max-width: 767px) {
  .ec-post-grid-wrap { grid-template-columns: 1fr; gap: 14px; }
}
