
/* =========================
   RESOURCES HUB SECTION
========================= */
/* =========================
   RESOURCES HUB HERO
========================= */

.rh-hero{
  background:#ffffff;
  padding: 70px 0 55px;
  text-align:center;
}

.rh-hero__title{
  margin:0;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(35,31,32,.92);
}

.rh-hero__sub{
  margin: 14px auto 0;
  max-width: 820px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(35,31,32,.60);

}

.rh-sec{
  padding: 70px 0;
  background: #ffffff;
}

.rh-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* Search */
.rh-search{
  display:flex;
  align-items:center;
  gap:10px;
  background:#fff;
  border:1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 260px;
  flex: 1;
  max-width: 420px;
}

.rh-search-icon{ opacity:.6; }

.rh-search input{
  border:none;
  outline:none;
  width:100%;
  font-weight:600;
  color: rgba(35,31,32,.85);
  background: transparent;
}

/* Tabs */
.rh-tabs{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

.rh-tab{
  border:1px solid var(--border);
  background:#fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight:800;
  font-size: 16px;
  cursor:pointer;
  color: rgba(35,31,32,.75);
}

.rh-tab.is-active{
  background: var(--green-hill);
  border-color: var(--green-hill);
  color:#fff;
}

/* Grid */
.rh-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Card */
.rh-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(35,31,32,.06);
  display:flex;
  flex-direction:column;
  min-height: 190px;
}

.rh-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 10px;
}

.rh-icon{
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(74,148,67,.08);
  border: 1px solid rgba(74,148,67,.12);
}

/* Category pill */
.rh-pill{
  font-size: 14px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: rgba(35,31,32,.65);
}

.rh-pill--guide{ color: var(--green-hill); border-color: rgba(74,148,67,.25); background: rgba(74,148,67,.06); }
.rh-pill--toolkit{ color: #0b6aa0; border-color: rgba(13,183,225,.25); background: rgba(13,183,225,.08); }
.rh-pill--template{ color: #7a5b00; border-color: rgba(255,212,0,.35); background: rgba(255,212,0,.10); }
.rh-pill--policy{ color: #5b2b2b; border-color: rgba(247,145,49,.35); background: rgba(247,145,49,.10); }

.rh-title{
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 900;
  color: rgba(35,31,32,.9);
}

.rh-desc{
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(35,31,32,.65);

}

.rh-actions{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.rh-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 9px 12px;
  border-radius: 10px;
  border:1px solid var(--border);
  background:#fff;
  font-weight: 800;
  font-size: 16px;
  text-decoration:none;
  color: rgba(35,31,32,.75);
  min-width: 110px;
}

.rh-mini{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color: rgba(35,31,32,.65);
}

.rh-empty{
  margin-top: 18px;
  text-align:center;
  color: rgba(35,31,32,.6);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 1100px){
  .rh-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 850px){
  .rh-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .rh-grid{ grid-template-columns: 1fr; }
  .rh-search{ max-width: 100%; }
  .rh-tabs{ justify-content:flex-start; }
}

/* Card image */
.rh-card-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  padding-bottom:15px; 
   /* ✅ THIS FIXES IT */
}

.rh-card-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Pill on image */
.rh-card-image .rh-pill{
  position: absolute;
  top: 12px;
  right: 12px;
}

