/* ============================================================
   RESOURCES / BLOG — Featured strip + grid layout
   ============================================================ */

/* ── Page shell ─────────────────────────────────────────────── */
.res-page {
  background: #F5EFE6;
  min-height: 100vh;
}

/* ── Header ─────────────────────────────────────────────────── */
.res-header {
  padding: 80px 48px 48px;
  text-align: center;
}

.res-title {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 400;
  color: #004B42;
  margin: 0 0 14px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.res-subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  font-style: italic;
  color: #888;
  margin: 0 0 28px;
}

.res-rule {
  width: 120px;
  height: 1px;
  background: rgba(0, 75, 66, 0.15);
  margin: 0 auto;
}

/* ── Content container ───────────────────────────────────────── */
.res-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px 100px;
}

/* ── Featured strip (posts 1–3) ──────────────────────────────── */
.res-featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.res-feat-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  background: #ffffff;
  border: 1px solid rgba(0, 75, 66, 0.12);
  border-radius: 4px;
  text-decoration: none;
  overflow: hidden;
  transition: transform 250ms ease, border-color 250ms ease;
  /* left border set via inline style — category colour */
}

.res-feat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 75, 66, 0.3);
}

.res-feat-top {
  height: 160px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.res-feat-deco {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 140px;
  font-weight: 400;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.res-feat-cat {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0 0 12px 16px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.res-feat-body {
  padding: 20px 24px 24px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.res-feat-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: #004B42;
  line-height: 1.3;
  margin: 0 0 10px;
}

.res-feat-excerpt {
  font-family: var(--font-body);
  font-size: 13px;
  color: #666666;
  line-height: 1.6;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.res-feat-footer {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 12px;
  color: #999999;
  border-top: 1px solid rgba(0, 75, 66, 0.1);
  padding-top: 16px;
  margin-top: auto;
}

/* ── Filter wrap ─────────────────────────────────────────────── */
.res-filter-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 48px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.res-filter-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999999;
  white-space: nowrap;
}

.res-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.res-filter-btn {
  padding: 7px 16px;
  border-width: 1px;
  border-style: solid;
  background: transparent;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

/* ── Section label ───────────────────────────────────────────── */
.res-section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.res-section-label-text {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999999;
  white-space: nowrap;
}

.res-section-rule {
  flex: 1;
  height: 1px;
  background: rgba(0, 75, 66, 0.12);
}

/* ── Main grid (posts 4+) ────────────────────────────────────── */
.res-main-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Card (shared) ───────────────────────────────────────────── */
.res-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(0, 75, 66, 0.12);
  border-radius: 4px;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.res-card:hover {
  border-color: rgba(0, 75, 66, 0.35);
  transform: translateY(-2px);
}

.res-card-bar {
  height: 4px;
  width: 100%;
  flex-shrink: 0;
}

.res-card-body {
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.res-cat-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  display: block;
}

.res-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: #004B42;
  line-height: 1.3;
  margin: 0 0 12px;
}

.res-card-excerpt {
  font-family: var(--font-body);
  font-size: 14px;
  color: #555555;
  line-height: 1.7;
  margin: 0 0 20px;
  flex: 1;
}

.res-card-footer {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 12px;
  color: #999999;
  border-top: 1px solid rgba(0, 75, 66, 0.1);
  padding-top: 14px;
  margin-top: auto;
}

/* ── Empty state ─────────────────────────────────────────────── */
.res-empty {
  text-align: center;
  padding: 80px 0;
  color: #888;
  font-style: italic;
  font-family: var(--font-body);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .res-featured { grid-template-columns: repeat(2, 1fr); }
  .res-main-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .res-header { padding: 108px 24px 36px; }
  .res-title { font-size: 52px; }
  .res-content { padding: 0 24px 80px; }
  .res-featured { grid-template-columns: 1fr; }
  .res-filter-wrap { padding-top: 36px; }
  .res-main-grid { grid-template-columns: 1fr; }
  .res-filter-wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .res-header { padding: 100px 16px 28px; }
  .res-title { font-size: 40px; }
  .res-content { padding: 0 16px 60px; }
}
