﻿/* CT-01 Subflow 04 — Latest Article Homepage Card */

.ct-latest-article {
  padding: 12px 0 24px;
}

.ct-latest-article__card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid #dbe8f4;
  border-inline-start: 4px solid #2563eb;
  border-radius: 16px;
  background: #f5f9ff;
  box-shadow: 0 4px 16px rgba(15, 50, 90, 0.06);
}

.ct-latest-article__media {
  flex: 0 0 180px;
  width: 180px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px;
  background: #e4eef9;
}

.ct-latest-article__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ct-latest-article__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #36628c;
  font-size: 14px;
}

.ct-latest-article__body {
  flex: 1;
  min-width: 0;
}

.ct-latest-article__eyebrow {
  margin: 0 0 8px;
  color: #1d4f91;
  font-size: 13px;
  font-weight: 700;
}

.ct-latest-article__title {
  margin: 0 0 8px;
  color: #17365d;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ct-latest-article__excerpt {
  margin: 0 0 10px;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.ct-latest-article__meta {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 12px;
}

.ct-latest-article__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.ct-latest-article__link:hover,
.ct-latest-article__link:focus-visible {
  text-decoration: underline;
}

.ct-latest-article__link:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 4px;
  border-radius: 3px;
}

@media (max-width: 640px) {
  .ct-latest-article {
    padding: 10px 0 20px;
  }

  .ct-latest-article__card {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }

  .ct-latest-article__media {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 8;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ct-latest-article *,
  .ct-latest-article *::before,
  .ct-latest-article *::after {
    scroll-behavior: auto;
    transition: none;
    animation: none;
  }
}
