/* ── Resources Hero ── */

.res-hero {
  background: var(--hero-both);
  padding: 7rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.res-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-both-veil);
  pointer-events: none;
}

.res-hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.res-breadcrumb {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

.res-breadcrumb a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.15s;
}

.res-breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.75);
}

.res-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7eb3ff;
  background: rgba(100, 160, 255, 0.12);
  border: 1px solid rgba(100, 160, 255, 0.25);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.res-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.res-hero--index h1 {
  font-size: 2.8rem;
}

.res-hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.res-meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.68);
  letter-spacing: 0.03em;
}

/* ── Article Body ── */

.res-article {
  background: #ffffff;
  padding: 5rem 2rem 6rem;
}

.res-inner {
  max-width: 720px;
  margin: 0 auto;
}

.res-inner h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #111111;
  margin: 3rem 0 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.res-inner h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.res-inner h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111111;
  margin: 1.75rem 0 0.5rem;
  letter-spacing: -0.01em;
}

.res-inner p {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.res-inner ul,
.res-inner ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.res-inner li {
  font-size: 1rem;
  color: #444;
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.res-inner strong {
  color: #111;
  font-weight: 600;
}

.res-inner a {
  color: #0057ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 87, 255, 0.3);
  transition: border-color 0.15s;
}

.res-inner a:hover {
  border-bottom-color: #0057ff;
}

.res-inner hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 2.5rem 0;
}

.res-inner em {
  font-size: 0.9rem;
  color: #888;
}

/* ── Index: Post List ── */

.res-list {
  background: #f8f9fc;
  padding: 5rem 2rem 6rem;
}

.res-list-inner {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.res-card {
  display: block;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.res-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: rgba(0, 87, 255, 0.2);
}

.res-card-date {
  display: block;
  font-size: 0.78rem;
  color: #999;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.res-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.res-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.res-card-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0057ff;
}

/* ── CTA Band ── */

.res-cta {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #111111 100%);
  padding: 7rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.res-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(0, 87, 255, 0.16) 0%, transparent 65%);
  pointer-events: none;
}

.res-cta-inner {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.res-cta h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.res-cta p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.res-cta-btn {
  display: inline-block;
  padding: 0.875rem 2.25rem;
  background: linear-gradient(135deg, #0057ff, #0041cc);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0, 87, 255, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.res-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 87, 255, 0.55);
}

/* ── Responsive ── */

@media (max-width: 640px) {
  .res-hero h1,
  .res-hero--index h1 {
    font-size: 1.85rem;
  }

  .res-cta h2 {
    font-size: 1.75rem;
  }
}

.res-hero-desc a {
  color: #7eb3ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(126, 179, 255, 0.4);
}

.res-hero-desc a:hover {
  border-color: #7eb3ff;
}

.res-back {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0057ff;
  text-decoration: none;
  border-bottom: 2px solid rgba(0, 87, 255, 0.25);
  padding-bottom: 0.15rem;
  transition: border-color 0.15s ease;
}

.res-back:hover {
  border-color: #0057ff;
}
