/* ==========================================================================
   Component: Card (Generic)
   ========================================================================== */

.c-card {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.c-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.c-card__link {
  text-decoration: none;
  color: inherit;
}
.c-card__link:hover {
  text-decoration: none;
}

/* 1. Thumbnail Section */
.c-card__thumbnail {
  width: 100%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #f5f5f5;
}

.c-card__thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.c-card:hover .c-card__thumbnail img {
  transform: scale(1.05);
}

.c-card__thumbnail--expired img {
  filter: brightness(0.8);
}

.c-card__thumbnail--expired .c-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #252020;
  opacity: 0.8;
  z-index: 1;
  display: block;
}

.c-card__thumbnail--expired .c-card__expired-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: var(--font-2xl);
  letter-spacing: 0.15em;
  z-index: 2;
  margin: 0;
  display: block;
  text-align: center;
  white-space: nowrap;
}

.c-card__no-thumbnail {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: var(--font-sm);
  aspect-ratio: 16 / 9;
  min-height: 150px;
}

/* 2. Body Section (Wraps Summary and Action) */
.c-card__body {
  padding: clamp(15px, 2vw, 20px);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.5vw, 15px);
}

/* 3. Summary Section */
.c-card__summary {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vw, 12px);
  flex-grow: 1;
}

.c-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(5px, 0.8vw, 8px);
}
.c-card__tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: auto;
  flex-shrink: 0;
  background-color: #eee;
  color: #333;
}

.c-card__title {
  font-size: clamp(var(--font-base), 1.8vw, var(--font-lg));
  font-weight: 700;
  height: 3rem;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-card__subtitle {
  font-size: clamp(var(--font-sm), 1.5vw, var(--font-base));
  font-weight: 700;
  line-height: 1.5;
  color: #333;
  margin: 0;
}

.c-card__descriptions {
  display: flex;
  flex-direction: column;
  min-height: 10rem;
  gap: clamp(5px, 0.8vw, 8px);
  flex-grow: 1;
}
.c-card__descriptions--minimum {
  min-height: 4rem;
}

.c-card__description {
  font-size: var(--font-sm);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-card__description--service-type {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: auto;
  flex-shrink: 0;
  font-size: var(--font-sm);
  color: #777;
  background-color: #f5f5f5;
  font-weight: 600;
}

/* 4. Action Section */
.c-card__action {
  text-align: center;
}
