/* Resources page theme: Emerald/Green accent */
body.resources-page{
  --primary:#0f766e;
  --primary-dark:#0b4f4a;
  --primary-light:#22c7b8;
  --dark:#0f172a;
}

/* HERO */
.resources-hero{
  position:relative;
  padding:130px 0 90px;
  color:#fff;
  overflow:hidden;
}
.resources-hero__bg{
  position:absolute; inset:0;
  background-image:url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?w=1920&h=1080&fit=crop');
  background-size:cover; background-position:center;
}
.resources-hero__overlay{
  position:absolute; inset:0;
  background:linear-gradient(135deg, rgba(15,23,42,.92), rgba(15,118,110,.55));
}
.resources-hero__content{ position:relative; z-index:2; max-width:780px; }
.resources-hero__content h1{ color:#fff; font-size:2.7rem; margin:16px 0 18px; }
.resources-hero__content p{ color:rgba(255,255,255,.85); font-size:1.05rem; margin-bottom:32px; max-width:650px; }
.resources-hero__cta{ display:flex; gap:16px; flex-wrap:wrap; }

/* CONTROLS */
.resources-controls{
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin:28px 0 10px;
}
.resources-search{
  flex:1;
  min-width:260px;
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--bg-light);
  border:1px solid var(--border);
  border-radius:50px;
  padding:12px 16px;
}
.resources-search i{ color:var(--muted); }
.resources-search input{
  border:none; outline:none;
  width:100%;
  background:transparent;
  font-size:.95rem;
}
.resources-sort{ display:flex; align-items:center; gap:10px; color:var(--muted); font-weight:700; }
.resources-sort select{
  border:1px solid var(--border);
  border-radius:10px;
  padding:10px 12px;
  background:#fff;
  font-weight:700;
}

/* FILTER TABS */
.filter-tabs{
  display:flex; justify-content:center; flex-wrap:wrap;
  gap:12px; margin:22px 0 18px;
}
.filter-tab{
  padding:11px 24px;
  border-radius:50px;
  border:1.5px solid var(--border);
  background:#fff;
  color:var(--muted);
  font-weight:700;
  font-size:.88rem;
  transition:var(--transition);
}
.filter-tab:hover{ border-color:var(--primary); color:var(--primary); }
.filter-tab.active{
  background:linear-gradient(135deg,var(--primary),var(--primary-light));
  border-color:transparent;
  color:#fff;
  box-shadow:0 8px 20px rgba(15,118,110,.25);
}

/* TAG CHIPS */
.tag-chips{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:26px;
}
.tag-chip{
  border:1px solid var(--border);
  background:#fff;
  padding:8px 14px;
  border-radius:999px;
  font-weight:700;
  font-size:.82rem;
  color:var(--muted);
  transition:var(--transition);
}
.tag-chip:hover{ border-color:var(--primary); color:var(--primary); }
.tag-chip.active{
  background:rgba(15,118,110,.1);
  border-color:rgba(15,118,110,.35);
  color:var(--primary);
}

/* GRID */
.resources-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(320px, 1fr));
  gap:28px;
}

.resource-card{
  background:#fff;
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow-sm);
  transition:var(--transition);
  cursor:pointer;
  opacity:0;
  transform:translateY(16px);
  animation:cardIn .5s ease forwards;
}
@keyframes cardIn{ to{ opacity:1; transform:translateY(0);} }

.resource-card:hover{ transform:translateY(-8px); box-shadow:var(--shadow-lg); }

.resource-img{ height:210px; overflow:hidden; position:relative; }
.resource-img img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.resource-card:hover .resource-img img{ transform:scale(1.08); }

.resource-badge{
  position:absolute;
  top:14px; left:14px;
  background:rgba(255,255,255,.95);
  color:var(--primary-dark);
  font-size:.7rem;
  font-weight:800;
  letter-spacing:.5px;
  padding:5px 12px;
  border-radius:999px;
}

.resource-body{ padding:22px; }
.resource-body h3{ font-size:1.12rem; margin-bottom:10px; }
.resource-body p{ color:var(--muted); font-size:.9rem; margin-bottom:14px; }

.resource-meta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:.82rem;
  font-weight:600;
}
.resource-meta i{ color:var(--primary); margin-right:6px; }

.load-more-wrap{ display:flex; justify-content:center; margin-top:34px; }

.empty-state{ text-align:center; padding:60px 20px; color:var(--muted); }
.empty-state i{ font-size:2.3rem; color:var(--border); margin-bottom:14px; display:block; }

/* CTA */
.resources-cta{
  background:linear-gradient(135deg, var(--dark), var(--primary-dark));
  padding:90px 0;
  text-align:center;
  color:#fff;
}
.resources-cta__inner{ max-width:680px; margin:0 auto; }
.resources-cta__inner h2{ color:#fff; font-size:2.1rem; margin:16px 0 18px; }
.resources-cta__inner p{ color:rgba(255,255,255,.8); margin-bottom:30px; }

/* MODAL */
.resource-detail-hero{
  margin:-50px -45px 18px;
  height:260px;
  overflow:hidden;
  border-radius:var(--radius) var(--radius) 0 0;
}
.resource-detail-hero img{ width:100%; height:100%; object-fit:cover; }

.resource-detail-excerpt{ color:var(--muted); font-weight:600; margin:14px 0 18px; }

.resource-detail-tags{
  display:flex; flex-wrap:wrap; gap:10px;
  margin:18px 0 24px;
}
.resource-detail-tags span{
  background:var(--bg-light);
  border:1px solid var(--border);
  border-radius:999px;
  padding:8px 14px;
  font-weight:800;
  font-size:.78rem;
  color:var(--muted);
}

.resource-detail-actions{
  display:flex; gap:12px; flex-wrap:wrap;
  margin-top:18px;
}
.btn-outline{
  background:#fff;
  border:1.5px solid var(--border);
  color:var(--ink);
}
.btn-outline:hover{ border-color:var(--primary); color:var(--primary); }

/* Responsive */
@media (max-width:768px){
  .resources-hero__content h1{ font-size:2rem; }
  .resource-detail-hero{ margin:-36px -24px 18px; height:200px; }
}