/* ===== Resource detail page – engaging yet corporate ===== */

.resource-detail-page {
  --rk-accent: #6366f1;
  --rk-accent-light: #eef2ff;
  --rk-card-bg: #ffffff;
  --rk-border: rgba(0,0,0,0.06);
}

/* Hero with subtle glow */
.resource-detail-page .resource-hero {
  background:
    radial-gradient(ellipse 70% 50% at 60% 10%, rgba(99,102,241,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(139,92,246,0.05) 0%, transparent 55%),
    linear-gradient(180deg, #fafbff 0%, #f4f5f8 100%);
}

/* Back link – more personality */
.resource-detail-page .resource-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--rk-border);
  font-size: 13px;
  font-weight: 600;
  color: #4f46e5;
  transition: all 0.2s ease;
}
.resource-detail-page .resource-back:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(99,102,241,0.12);
  color: #4338ca;
}

/* Badge – softer, more inviting */
.resource-detail-page .resource-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
}

/* Meta row – cleaner */
.resource-detail-page .resource-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 13px;
  color: #64748b;
}
.resource-detail-page .resource-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.resource-detail-page .resource-meta .dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}

/* Featured image – card style with shadow */
.resource-detail-page .resource-featured-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid var(--rk-border);
}
.resource-detail-page .resource-featured-img img {
  display: block;
  width: 100%;
  height: auto;
}

/* Article body – clearer hierarchy, less dense */
.resource-detail-page .details-body,
.resource-detail-page .resource-article {
  margin-top: 2.5rem;
}

.resource-detail-page .details-body h3,
.resource-detail-page .resource-article h3 {
  margin-top: 2.25rem !important;
  margin-bottom: 0.6rem !important;
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 4px solid var(--rk-accent);
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  background: linear-gradient(90deg, rgba(99,102,241,0.06) 0%, transparent 100%);
  border-radius: 0 8px 8px 0;
}
.resource-detail-page .details-body h3:first-child,
.resource-detail-page .resource-article h3:first-child {
  margin-top: 0 !important;
}
.resource-detail-page .details-body p,
.resource-detail-page .resource-article p {
  margin-bottom: 0 !important;
  padding-bottom: 1.25rem !important;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #475569;
}
.resource-detail-page .details-body p:last-of-type,
.resource-detail-page .resource-article p:last-of-type {
  padding-bottom: 0 !important;
}

/* CTA strip – inviting but professional */
.resource-detail-page .resource-cta {
  margin-top: 2.5rem;
  padding: 2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--rk-border);
}
.resource-detail-page .resource-cta .btn {
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
}
.resource-detail-page .resource-cta .btn-outline {
  border-width: 1.5px;
}
