/* Shared styles for the Resources section — mirrors the main site's design tokens */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #1B3A5C;
  --teal:    #1A7A6E;
  --teal-lt: #2A9D8F;
  --gold:    #C9933A;
  --cream:   #F8F5F0;
  --white:   #FFFFFF;
  --gray:    #6B7280;
  --dark:    #1C1C1E;
  --border:  #E5E0D8;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV (same as homepage) ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(27, 58, 92, 0.97);
  backdrop-filter: blur(8px);
  padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand-logo { display: flex; align-items: center; padding: 2px 6px; flex-shrink: 0; }
.nav-brand-logo img { display: block; height: 48px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  white-space: nowrap;
  color: rgba(255,255,255,0.75); text-decoration: none;
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: white; }
.nav-cta {
  display: inline-block; line-height: 1.2;
  background: var(--gold); color: white !important;
  padding: 10px 22px; border-radius: 999px;
  font-weight: 600 !important; letter-spacing: 0.03em !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: #b8832e !important; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; transition: 0.3s; }

/* ── SHARED ── */
.section-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 16px;
}
.btn-primary {
  background: var(--gold); color: white; font-weight: 600; font-size: 15px;
  padding: 14px 32px; border-radius: 8px;
  text-decoration: none; border: none; cursor: pointer; letter-spacing: 0.02em;
  transition: transform 0.2s, background 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: #b8832e; transform: translateY(-1px); }

/* ── PAGE HEADER ── */
.page-hero {
  background: var(--navy);
  padding: 152px 48px 80px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(26,122,110,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(201,147,58,0.08) 0%, transparent 60%);
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero .section-tag { color: var(--teal-lt); }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700; line-height: 1.15; color: white; margin-bottom: 18px;
}
.page-hero h1 em { font-style: italic; color: var(--teal-lt); }
.page-hero-sub {
  font-size: 17px; color: rgba(255,255,255,0.7);
  line-height: 1.7; font-weight: 300; max-width: 620px;
}

/* ── RESOURCE LIST ── */
.resources-list { background: var(--cream); padding: 80px 48px 100px; }
.resources-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.resource-card {
  background: white; border: 1px solid var(--border); border-radius: 16px;
  padding: 32px 30px; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.resource-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-lt));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.resource-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(27,58,92,0.1); border-color: var(--teal-lt); }
.resource-card:hover::before { transform: scaleX(1); }
.resource-date {
  font-size: 12px; font-weight: 600; color: var(--teal);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px;
}
.resource-title {
  font-family: 'Playfair Display', serif; font-size: 21px; font-weight: 600;
  color: var(--navy); line-height: 1.3; margin-bottom: 12px;
}
.resource-title a { color: inherit; text-decoration: none; }
.resource-summary { font-size: 14px; color: var(--gray); line-height: 1.7; margin-bottom: 24px; flex: 1; }
.resource-more {
  font-size: 14px; font-weight: 600; color: var(--teal); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
}
.resource-more:hover { color: var(--navy); }

/* ── ARTICLE ── */
.article-hero { padding-bottom: 64px; }
.article-hero .page-hero-inner { max-width: 760px; }
.article-back {
  display: inline-block; font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.6); text-decoration: none; margin-bottom: 24px;
}
.article-back:hover { color: white; }
.article-meta { font-size: 14px; color: rgba(255,255,255,0.55); }

.article-body { padding: 72px 48px 40px; }
.article-content { max-width: 720px; margin: 0 auto; }
.article-content p, .article-content li {
  font-size: 18px; line-height: 1.85; color: #374151;
}
.article-content p { margin-bottom: 24px; }
.article-content h2 {
  font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700;
  color: var(--navy); line-height: 1.3; margin: 48px 0 16px;
}
.article-content h3 {
  font-size: 19px; font-weight: 600; color: var(--navy); margin: 32px 0 12px;
}
.article-content ul, .article-content ol { margin: 0 0 24px 24px; }
.article-content li { margin-bottom: 10px; }
.article-content a { color: var(--teal); }
.article-content strong { color: var(--navy); font-weight: 600; }
.article-content blockquote {
  border-left: 3px solid var(--teal-lt);
  background: var(--cream); padding: 20px 24px; border-radius: 0 10px 10px 0;
  margin: 32px 0; font-style: italic;
}
.article-content blockquote p { margin: 0; }

.article-cta-wrap { padding: 24px 48px 100px; }
.article-cta {
  max-width: 720px; margin: 0 auto;
  background: var(--navy); border-radius: 20px; padding: 44px 40px;
  text-align: center; position: relative; overflow: hidden;
}
.article-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 100% at 80% 50%, rgba(26,122,110,0.25) 0%, transparent 70%);
}
.article-cta > * { position: relative; z-index: 1; }
.article-cta h2 {
  font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700;
  color: white; margin-bottom: 12px; line-height: 1.25;
}
.article-cta p {
  font-size: 16px; color: rgba(255,255,255,0.7); font-weight: 300;
  line-height: 1.7; margin: 0 auto 28px; max-width: 500px;
}

/* ── FOOTER (same as homepage) ── */
footer { background: #13293F; padding: 48px; text-align: center; }
.footer-brand { font-family: 'Playfair Display', serif; font-size: 20px; color: white; font-weight: 600; margin-bottom: 8px; }
.footer-sub { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 24px; }
.footer-links { display: flex; justify-content: center; gap: 32px; list-style: none; margin-bottom: 32px; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-social { margin-bottom: 28px; }
.footer-social a { color: rgba(255,255,255,0.5); display: inline-flex; transition: color 0.2s; }
.footer-social a:hover { color: white; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); line-height: 1.7; }

/* ── TABLET ── */
@media (max-width: 1024px) and (min-width: 769px) {
  nav { padding: 0 24px; gap: 16px; }
  .nav-brand-logo img { height: 40px; width: auto; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
  .nav-cta { padding: 9px 16px; }
  .resources-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-brand-logo img { height: 40px; width: auto; }
  .nav-mobile-open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--navy); padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-mobile-open .nav-links li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }

  .page-hero { padding: 116px 24px 56px; }
  .resources-list { padding: 56px 24px 72px; }
  .resources-grid { grid-template-columns: 1fr; }
  .article-body { padding: 48px 24px 24px; }
  .article-content p, .article-content li { font-size: 17px; }
  .article-content h2 { font-size: 24px; }
  .article-cta-wrap { padding: 16px 24px 72px; }
  .article-cta { padding: 36px 24px; }
  .article-cta h2 { font-size: 24px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}
