/* Resource article pages */

.resource-article-page {
  background: var(--white);
}

.resource-article-main {
  position: relative;
  padding: 2.5rem 0 0;
  background-color: var(--white);
  background-image:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.58) 0%,
      rgba(255, 255, 255, 0.68) 100%
    ),
    url("../images/newsletter-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.resource-article-main > .container {
  position: relative;
  z-index: 1;
}

.resource-article-panel {
  max-width: 1160px;
  margin: 0 auto 2.5rem;
  padding: 2.5rem 2.75rem 3rem;
  background: #fafaf8;
  border: 1px solid rgba(27, 75, 74, 0.12);
  border-top: 3px solid var(--sage);
  border-radius: 4px;
  box-shadow: 0 10px 36px rgba(27, 75, 74, 0.09);
}

.resource-article-wrap {
  max-width: 1140px;
  margin: 0 auto;
}

/* Breadcrumb */
.resource-breadcrumb {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.resource-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.resource-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resource-breadcrumb li + li::before {
  content: "/";
  color: rgba(90, 90, 90, 0.55);
  font-weight: 400;
}

.resource-breadcrumb a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.resource-breadcrumb a:hover {
  color: var(--gold);
}

.resource-breadcrumb [aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

/* Header */
.resource-article-header {
  max-width: 900px;
  margin: 0 auto 2rem;
  text-align: left;
}

.resource-category-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-muted);
  text-decoration: none;
  margin-bottom: 0.85rem;
}

.resource-category-tag:hover {
  color: var(--gold);
}

.resource-article-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--teal-deep);
  margin: 0 0 0.85rem;
  text-wrap: balance;
}

.resource-article-meta {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* Hero image */
.resource-article-hero {
  margin: 0 auto 2.75rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(27, 75, 74, 0.12);
}

.resource-article-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Body */
.resource-article-body {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
}

.resource-article-body > p {
  margin: 0 0 1.65rem;
}

.resource-article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--teal-deep);
  margin: 2.75rem 0 1rem;
}

.resource-article-body h2:first-child {
  margin-top: 0;
}

.resource-article-body strong {
  font-weight: 600;
  color: var(--teal-deep);
}

/* Pull quote */
.resource-pullquote {
  margin: 2.25rem 0;
  padding: 0 0 0 1.35rem;
  border: none;
  border-left: 4px solid var(--color-gold-muted);
}

.resource-pullquote p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--teal-deep);
  margin: 0;
}

/* Bulleted lists */
.resource-list-bullet {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.resource-list-bullet li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.65;
}

.resource-list-bullet li:last-child {
  margin-bottom: 0;
}

.resource-list-bullet li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--sage);
}

/* Numbered lists */
.resource-list-numbered {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  counter-reset: resource-step;
}

.resource-list-numbered li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.35rem;
  counter-increment: resource-step;
  line-height: 1.65;
}

.resource-list-numbered li:last-child {
  margin-bottom: 0;
}

.resource-list-numbered li::before {
  content: counter(resource-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--teal-deep);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 2rem;
  text-align: center;
}

/* Safety note */
.resource-safety-note {
  max-width: 900px;
  margin: 3rem auto 0;
  padding: 1.5rem 1.65rem;
  background: rgba(139, 168, 136, 0.16);
  border: 1px solid rgba(139, 168, 136, 0.35);
  border-radius: 10px;
}

.resource-safety-note h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--teal-deep);
  margin: 0 0 0.75rem;
}

.resource-safety-note p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
}

/* External resources */
.external-resources-mount {
  display: block;
}

.external-resources {
  margin: 0;
  padding: 3.5rem 0;
  background: rgba(139, 168, 136, 0.1);
  border-top: 1px solid rgba(139, 168, 136, 0.28);
  border-bottom: 1px solid rgba(139, 168, 136, 0.28);
}

.external-resources-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.external-resources h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 400;
  color: var(--teal-deep);
  text-align: center;
  margin: 0 0 0.85rem;
}

.external-resources-subhead {
  max-width: 650px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  text-align: center;
}

.external-resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}

.external-resources-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(27, 75, 74, 0.12);
  border-radius: 8px;
  padding: 1.35rem 1.4rem 1.25rem;
}

.external-resources-logo {
  display: block;
  width: auto;
  max-width: 200px;
  max-height: 72px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
  object-position: left center;
}

.external-resources-card-body {
  flex: 1;
  min-width: 0;
}

.external-resources-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--teal-deep);
  line-height: 1.35;
  margin: 0 0 0.65rem;
}

.external-resources-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
}

.external-resources-card-note {
  font-size: 0.8125rem !important;
  line-height: 1.5 !important;
  margin: -0.35rem 0 0.85rem !important;
}

.external-resources-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  color: white;
  text-decoration: none;
  background: var(--teal-deep);
  border-radius: 4px;
  transition: background 0.2s ease;
}

.external-resources-link:hover {
  color: white;
  text-decoration: none;
  background: #163d3c;
}

.external-resources-link-icon {
  flex-shrink: 0;
  color: white;
}

/* Related articles */
.resource-related {
  background: transparent;
  padding: 3.5rem 0 4rem;
  margin-top: 0;
}

.resource-related-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.resource-related h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 400;
  color: var(--teal-deep);
  text-align: center;
  margin: 0 0 2rem;
}

.resource-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.resource-related-grid .latest-card {
  height: 100%;
}

/* CTA band */
.resource-article-cta {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
  background:
    linear-gradient(
      to bottom,
      rgba(139, 168, 136, 0.45) 0%,
      rgba(168, 197, 214, 0.5) 100%
    ),
    var(--grey-warm);
}

.resource-article-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
}

.resource-article-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--teal-deep);
  margin: 0 0 1rem;
}

.resource-article-cta p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 1.75rem;
}

@media (max-width: 900px) {
  .external-resources-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .resource-related-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .resource-article-main {
    padding-top: 1.75rem;
  }

  .resource-article-panel {
    padding: 1.75rem 1.35rem 2.25rem;
  }

  .resource-article-body {
    font-size: 1.0625rem;
  }

  .resource-breadcrumb {
    margin-bottom: 1.5rem;
  }
}
