/* ========= BLOGS (Latest Blogs) ========= */
.rwu-blogs{
  padding: 64px 16px 24px;
  background: #fff;
}
.rwu-blogs__wrap{
  max-width: 80vw;          /* wide, like the Figma frame */
  margin: 0 auto;
}

/* Header */
.rwu-blogs__head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
}
.rwu-blogs__title{ display:flex; flex-direction:column; gap: 8px; }
.rb-title{
  margin: 0;
  font: 600 32px/1.2 Exo, Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: #000;
}
.rb-sub{
  margin: 0;
  font: 400 18px/1.5 Jost, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: #555;
}

.rb-all{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 10px 24px;
  background: #2DADFF;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font: 500 18px/1.5 Jost, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 6px 14px rgba(45,173,255,.25);
}
.rb-all:hover{ transform: translateY(-1px); }

/* Grid */
.rwu-blogs__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

/* Card */
.rb-card{
  background: #fff;
  border: 1px solid #EAEAEA;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.rb-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(1,11,60,.12);
}

/* Media */
.rb-media{
  display: block;
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 61.5%;      /* ~4:2.46 -> pleasing crop; use 4:3 if you prefer: 75% */
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}
.rb-media img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.rb-card:hover .rb-media img{ transform: scale(1.03); }

/* Content */
.rb-content{
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 190px; /* match figma vibe */
}

/* Meta row */
.rb-meta{
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 24px;
}
.rb-chip{
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  background: rgba(45,173,255,.12);
  color: #2DADFF;
  font: 600 12px/24px Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}
.rb-date{
  font: 400 14px/1.2 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: #657080;
}

/* Title */
.rb-h4{
  margin: 0;
  font: 600 20px/1.2 Exo, Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: #000;
}
.rb-h4 a{
  color: inherit;
  text-decoration: none;
}
.rb-h4 a:hover{ text-decoration: underline; }

/* Excerpt */
.rb-excerpt{
  margin: 0;
  font: 400 16px/1.5 Jost, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: #555;
}

/* Footer */
.rb-footer{
  margin-top: auto;
  display: flex;
  justify-content: flex-start;
}
.rb-link{
  color: #2DADFF;
  font: 500 16px/1.5 Jost, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  text-decoration: none;
}
.rb-link:hover{ text-decoration: underline; }

/* Empty state */
.rb-empty{
  grid-column: 1/-1;
  padding: 24px;
  border: 1px dashed #eaeaea;
  border-radius: 12px;
  text-align: center;
  color: #657080;
  font: 400 16px/1.5 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

/* ===== Responsive ===== */
@media (max-width: 1200px){
  .rwu-blogs__wrap{ max-width: 1100px; }
  .rwu-blogs__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px){
  .rwu-blogs__head{ align-items: flex-start; }
  .rb-all{ margin-left: auto; }
}
@media (max-width: 720px){
  .rwu-blogs__grid{ grid-template-columns: 1fr; }
  .rb-title{ font-size: 28px; }
  .rb-sub{ font-size: 16px; }
  .rb-media{ padding-bottom: 66%; }
}
