/* INICIO NEWSCARD */
/* =========================================================
   1. GRID CONTAINER
========================================================= */

.ufob-news-grid {
  max-width: 1150px !important;
  width: 100%;
  margin-bottom: 20px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}


/* =========================================================
   2. CARD PADRÃO
========================================================= */

.ufob-news-grid .collection-item,
.ufob-news-grid .tile-item {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;

  display: flex;
  flex-direction: column;
}


/* Hover */
.ufob-news-grid .collection-item:hover,
.ufob-news-grid .tile-item:hover {
  transform: translateY(-4px);
}


/* =========================================================
   3. IMAGEM
========================================================= */

.ufob-news-grid .collection-item img,
.ufob-news-grid .tile-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}


/* =========================================================
   4. TÍTULO
========================================================= */

.ufob-news-grid .collection-item h2,
.ufob-news-grid .tile-item h2 {
  margin: 0;
}

.ufob-news-grid .collection-item h2 a,
.ufob-news-grid .tile-item h2 a {
  display: block;
  padding: 16px;

  min-height: 80px;

  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;

  color: #0070a2 !important;
  text-decoration: none !important;

  margin-bottom: 8px;
}

.ufob-news-grid .collection-item h2 a:hover,
.ufob-news-grid .tile-item h2 a:hover {
  text-decoration: underline;
}


/* =========================================================
   5. DESCRIÇÃO
========================================================= */

.ufob-news-grid .collection-item .description,
.ufob-news-grid .tile-item .description {
  padding: 0 16px;

  font-size: 14px;
  line-height: 1.5;
  color: #555;

  text-align: justify;
  margin-bottom: 12px;

  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* =========================================================
   6. DATA / TIME
========================================================= */

.ufob-news-grid .collection-item time,
.ufob-news-grid .tile-item time {
  order: 2;

  padding: 0 16px 16px;

  font-size: 12px;
  color: #888;
}


@media (max-width: 768px) {

    .ufob-news-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 0 12px;
        box-sizing: border-box;
    }

    .ufob-news-grid .collection-item img,
    .ufob-news-grid .tile-item img {
        height: 140px !important;
    }

    .ufob-news-grid .collection-item h2 a,
    .ufob-news-grid .tile-item h2 a {
        min-height: auto !important;
        height: auto !important;
        font-size: 16px !important;
        line-height: 1.35 !important;
        padding: 12px !important;
        margin-bottom: 4px !important;
    }

    .ufob-news-grid .collection-item .description,
    .ufob-news-grid .tile-item .description {
        font-size: 13px !important;
        padding: 0 12px !important;
        margin-bottom: 10px !important;
    }

    .ufob-news-grid .collection-item time,
    .ufob-news-grid .tile-item time {
        padding: 0 12px 12px !important;
        font-size: 11px !important;
    }
}

/* FIM NEWSCARD */