/* ============================================================
   cards.css — Card Component and Variants
   ============================================================ */

/* ========== 7. CARDS ========== */

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  overflow: hidden;
}

.card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(172, 50, 138, 0.10);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--color-primary);
}

/* Card — Scholarship */
.card-scholarship {
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s, opacity 0.2s;
}

.card-scholarship:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}

.card-scholarship-img-link {
  display: block;
  line-height: 0;
}

.card-scholarship-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.card-scholarship-body {
  padding: 16px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 4px solid var(--color-primary);
  flex: 1;
  transition: border-color 0.2s;
}

.card-scholarship:hover .card-scholarship-body {
  border-left-color: var(--color-teal);
}

.card-scholarship--closed {
  opacity: 0.7;
}

.card-scholarship--closed .card-scholarship-body {
  border-left-color: #ccc;
}

.card-scholarship--closed:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card-scholarship--closed:hover .card-scholarship-body {
  border-left-color: #999;
}

.card-scholarship-header {
  display: flex;
  align-items: center;
  margin-bottom: 2px;
}

.card-scholarship-header .badge {
  position: static;
}

.card-scholarship-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-scholarship-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 0;
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.card-meta-item:not(:last-child)::after {
  content: "\00a0\00b7\00a0";
  color: var(--color-text-muted);
  opacity: 0.5;
}

.card-meta-icon {
  font-size: 11px;
  line-height: 1;
}

.card-meta-item--closing {
  color: #159486;
  font-weight: 400;
}

.card-meta-item--closed {
  color: #999;
}

.card-scholarship-excerpt {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
}

.card-scholarship-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  margin-top: auto;
  padding-top: 8px;
  transition: color 0.15s, gap 0.2s;
}

.card-scholarship-link:hover {
  color: var(--color-teal);
  gap: 8px;
}

.card-link-arrow {
  transition: transform 0.2s;
  display: inline-block;
}

.card-scholarship-link:hover .card-link-arrow {
  transform: translateX(3px);
}

/* Card — Blog (image bleeds to edge) */
.card--blog .card-img,
.card-img {
  height: 130px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.card--blog .card-body,
.card-body {
  padding: 14px;
}

.card--blog-side,
.card-blog-side {
  display: flex;
  gap: 14px;
  padding: 12px;
}

.card-blog-side .card-thumb,
.card--blog-side .card-thumb {
  width: 90px;
  height: 72px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

/* Card — Blog Card (shared component, used on homepage + archive) */

.card--blog {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card--blog:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card--blog__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card--blog__link:hover {
  text-decoration: none;
}

.card--blog__img {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--color-bg-alt);
  position: relative;
}

.card--blog__img .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  right: auto;
}

.card--blog__body {
  padding: 1.2rem;
}

.card--blog__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card--blog__date {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* Card — Press quote card (sobre-style) */
.card--press {
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.3s;
  border-left: 4px solid var(--color-primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card--press:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 44px rgba(0,0,0,0.10);
}

.card--press .card__quote {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
  font-style: italic;
  flex: 1;
}

.card--press .card__source {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Card — Icon card (info cards, contato-style) */
.card--icon {
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(26, 22, 37, 0.06);
  text-align: center;
  transition: all 0.3s;
}

.card--icon:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 44px rgba(26, 22, 37, 0.10);
}

.card--icon h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.card--icon p {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.9rem;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__icon--primary {
  background: rgba(172, 50, 138, 0.1);
  color: var(--color-primary);
}

.card__icon--teal {
  background: rgba(21, 148, 134, 0.1);
  color: var(--color-teal);
}

.card__icon--coral {
  background: rgba(255, 107, 53, 0.1);
  color: var(--color-coral);
}
