/* ==================================================
   CARD COMPONENT
================================================== */

.card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.12),
    0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Image */
.card-image {
  min-height: 180px;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}

/* Content */
.card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Title */
.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  word-break: break-word;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Meta */
.card-meta {
  justify-content: flex-end; /* push items to the right */
  text-align: right;
  width: 100%;

  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.card-author {
  justify-content: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.card-author-avatar {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.card-author-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* .card-author img {
  border-radius: 50%;
  width: 22px;
  height: 22px;
}

.card-author:hover {
  opacity: 0.75;
} */

.card-separator {
  margin-left: auto;
  opacity: 0.5;
}

/* Excerpt */
.card-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

/* Button alignment */
.card .btn {
  align-self: flex-start;
}

/* ==================================================
   SECTOR CARD
================================================== */

.card-sector {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.card-sector-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.card-sector-image {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.card-sector-body {
  padding: 1.6rem;
  background: #fff;
}

.card-sector-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.card-sector-cta {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 500;
}

/* Hover */
.card-sector:hover {
  transform: translateY(-6px);
}

.card-sector:hover .card-sector-image {
  transform: scale(1.05);
}
