/*
Theme Name: Divi-child
Theme URI: http://www.elegantthemes.com/gallery/divi/
Description: Child theme for the Divi theme
Author: Elegant Themes
Author URI: http://www.elegantthemes.com
Template: Divi
Version: 1.0.0
*/

/* note feed (TRB style) */
.note-feed{
  max-width: 1100px;
  margin: 22px 0;
}

.note-feed__head{
  display:flex;
  align-items:center;
  gap:10px;
  margin: 0 0 14px;
}

.note-feed__badge{
  font-size: 12px;
  font-weight: 700;
  color:#fff;
  background:#2cb696;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing:.04em;
}

.note-feed__title{
  font-size: 18px;
  font-weight: 800;
  color:#111;
}

.note-feed__grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.note-feed__card{
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color:inherit;
  border:1px solid #e7e7e7;
  border-radius: 16px;
  overflow:hidden;
  background:#fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.note-feed__card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,.12);
}

.note-feed__thumb{
  aspect-ratio: 16/9;
  background:#f3f3f3;
  overflow:hidden;
}

.note-feed__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.note-feed__thumb--fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(135deg,#0b1e6d,#06124a);
  color:#fff;
  font-weight:800;
  letter-spacing:.06em;
}

.note-feed__body{
  padding: 14px 16px 16px;
}

.note-feed__cardtitle{
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  color:#111;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
  min-height: calc(1.4em * 2);
}

.note-feed__meta{
  margin-top: 10px;
  font-size: 12px;
  color:#777;
}

/* responsive */
@media (max-width: 980px){
  .note-feed__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .note-feed__grid{ grid-template-columns: 1fr; }
}
