/* Trend Feed Widget v1.7 */
.tfw_box{
  --tfw-accent:var(--tfw-border, #2c7bc6);
  --tfw-divider-color:var(--tfw-divider, rgba(44, 123, 198, .24));
  border:var(--tfw-bw, 1px) solid var(--tfw-accent);
  border-radius:var(--tfw-rad, 14px);
  padding:14px 16px 16px;
  background:linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  box-shadow:0 10px 24px rgba(15, 23, 42, .05);
  font:normal 14px/1.55 "Segoe UI", Arial, sans-serif;
  color:#16324f;
}

.tfw__hdr{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-bottom:12px;
  margin-bottom:14px;
  border-bottom:var(--tfw-divw, 1px) solid var(--tfw-divider-color);
}

.tfw__brand{
  display:inline-flex;
  align-items:center;
  min-width:0;
  font-weight:800;
  letter-spacing:.02em;
  color:#1f5f9b;
  text-transform:uppercase;
}

.tfw__brand img{
  width:auto;
  max-width:var(--tfw-logo-w, 150px);
  max-height:var(--tfw-logo-h, 34px);
  display:block;
}

.tfw__more{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  background:linear-gradient(180deg, #2e86d4 0%, #1f6fb6 100%);
  border:1px solid rgba(17, 84, 141, .22);
  color:#fff;
  text-decoration:none;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
  box-shadow:0 6px 16px rgba(31, 111, 182, .22);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.tfw__more:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 18px rgba(31, 111, 182, .28);
  filter:saturate(1.05);
}

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

.tfw__list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.tfw__item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.tfw__item + .tfw__item{
  padding-top:14px;
  border-top:1px solid rgba(18, 84, 142, .1);
}

.tfw__meta{
  display:flex;
  flex:1 1 auto;
  min-width:0;
  flex-direction:column;
  gap:8px;
}

.tfw__link{
  color:#1766a9;
  text-decoration:none;
  font-size:17px;
  line-height:1.16;
  font-weight:800;
  letter-spacing:-.02em;
}

.tfw__link:hover{
  color:#0f5a98;
}

.tfw__time,
.tfw_card-time{
  color:#6e7f92;
  font-size:12px;
  line-height:1.4;
}

.tfw__thumb{
  flex:0 0 112px;
  width:112px;
  height:84px;
  margin-left:2px;
  overflow:hidden;
  border-radius:8px;
  border:1px solid rgba(18, 84, 142, .1);
  background:#edf3f8;
}

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

.tfw_error{
  background:#fff7f7;
  border-color:#ffd4d4;
  color:#7f1d1d;
}

.tfw--carousel{
  --gap:14px;
  --pv:1;
  --pv-md:2;
  --pv-lg:3;
}

.tfw--carousel .tfw_carousel{position:relative}

.tfw--carousel .tfw_track{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:calc((100% - var(--gap)*(var(--pv-active, var(--pv)) - 1)) / var(--pv-active, var(--pv)));
  gap:var(--gap);
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-padding:1px;
  -webkit-overflow-scrolling:touch;
  padding-bottom:4px;
}

.tfw--carousel .tfw_track.no-scrollbar{
  -ms-overflow-style:none;
  scrollbar-width:none;
}

.tfw--carousel .tfw_track.no-scrollbar::-webkit-scrollbar{
  display:none;
  width:0;
  height:0;
}

@media (min-width:640px){ .tfw--carousel { --pv-active: var(--pv-md); } }
@media (min-width:1024px){ .tfw--carousel { --pv-active: var(--pv-lg); } }

.tfw--carousel .tfw_card{
  display:flex;
  flex-direction:column;
  gap:10px;
  scroll-snap-align:start;
  text-decoration:none;
  color:inherit;
  border:1px solid rgba(18, 84, 142, .14);
  border-radius:12px;
  padding:10px;
  background:#fff;
}

.tfw--carousel .tfw_card:hover{
  box-shadow:0 8px 18px rgba(15, 23, 42, .08);
}

.tfw--carousel .tfw_card-thumb{
  width:100%;
  height:160px;
  border-radius:10px;
  overflow:hidden;
  background:#edf3f8;
  border:1px solid rgba(18, 84, 142, .1);
}

.tfw--carousel .tfw_card-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.tfw--carousel .tfw_card-title{
  color:#1766a9;
  font-weight:800;
  line-height:1.25;
}

.tfw--carousel .tfw_nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(18, 84, 142, .16);
  background:#fff;
  color:#1d5f99;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(15, 23, 42, .08);
  z-index:1;
}

.tfw--carousel .tfw_prev{left:-8px}
.tfw--carousel .tfw_next{right:-8px}
.tfw--carousel .tfw_nav:hover{background:#f7fbff}

.elementor-editor-active .tfw--carousel .tfw_track{overflow-x:hidden}
.elementor-editor-active .tfw--carousel .tfw_nav{opacity:.7}

.tfw--bsatu{
  --tfw-border:#2c7bc6;
  --tfw-divider:rgba(44, 123, 198, .24);
}

@media (max-width:560px){
  .tfw_box{
    padding:13px 14px 14px;
  }

  .tfw__hdr{
    gap:10px;
  }

  .tfw__brand img{
    max-width:min(var(--tfw-logo-w, 150px), 52vw);
  }

  .tfw__more{
    padding:7px 10px;
    font-size:11px;
  }

  .tfw__link{
    font-size:15px;
  }

  .tfw__thumb{
    flex-basis:98px;
    width:98px;
    height:74px;
  }
}
