/* ============================================================
   Issued for Interns — Blog / Resources stylesheet
   Shared across /resources hub and individual blog posts
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green-dark: #2d4a1e;
  --green-mid: #3d6628;
  --green-light: #e8eedf;
  --green-icon-bg: #dce8d0;
  --gold: #b8860b;
  --gold-btn: #c49a1a;
  --gold-btn-hover: #a07d10;
  --bg-main: #f2efe8;
  --bg-white: #ffffff;
  --text-dark: #1a1a0e;
  --text-mid: #444438;
  --text-muted: #777766;
  --border: #d8d5cc;
  --card-border: #dddbd3;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 400;
  background: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(29, 46, 18, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  height: 60px;
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
}
.nav-logo-text {
  font-size: 15px;
  font-weight: 600;
  color: white;
  letter-spacing: 1.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: white;
}
.btn-nav {
  background: var(--gold-btn);
  color: white;
  border: none;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}
.btn-nav:hover {
  background: var(--gold-btn-hover);
}

@media (max-width: 768px) {
  .nav-links a:not(.btn-nav) {
    display: none;
  }
}

/* ── BREADCRUMBS ── */
.breadcrumbs {
  max-width: 760px;
  margin: 32px auto 0;
  padding: 0 24px;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumbs a {
  color: var(--green-mid);
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs span {
  margin: 0 8px;
  color: var(--text-muted);
}

/* ── HERO / HEADER ── */
.post-header {
  max-width: 760px;
  margin: 24px auto 40px;
  padding: 0 24px;
}
.post-eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-mid);
  font-weight: 600;
  margin-bottom: 16px;
}
.post-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 18px;
}
.post-meta strong {
  color: var(--text-mid);
  font-weight: 500;
}

/* ── ARTICLE BODY ── */
article.post-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 17px;
  color: var(--text-mid);
}
article.post-body h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--text-dark);
  margin: 48px 0 16px;
  line-height: 1.25;
}
article.post-body h3 {
  font-weight: 600;
  font-size: 20px;
  color: var(--text-dark);
  margin: 32px 0 12px;
}
article.post-body p {
  margin-bottom: 18px;
}
article.post-body ul,
article.post-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
article.post-body li {
  margin-bottom: 8px;
}
article.post-body strong {
  color: var(--text-dark);
  font-weight: 600;
}
article.post-body a {
  color: var(--green-mid);
  text-decoration: underline;
  text-decoration-color: rgba(61, 102, 40, 0.4);
  text-underline-offset: 3px;
}
article.post-body a:hover {
  text-decoration-color: var(--green-mid);
}

article.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
article.post-body th {
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 600;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
article.post-body td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
article.post-body tr:last-child td {
  border-bottom: none;
}

article.post-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 20px;
  margin: 24px 0;
  color: var(--text-dark);
  font-style: italic;
  background: rgba(184, 134, 11, 0.04);
  padding-left: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-right: 16px;
  border-radius: 0 6px 6px 0;
}

/* Callout box */
.callout {
  background: var(--green-light);
  border-left: 3px solid var(--green-mid);
  padding: 18px 22px;
  margin: 28px 0;
  border-radius: 0 8px 8px 0;
  font-size: 16px;
}
.callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green-dark);
}

/* ── FAQ ── */
.faq-block {
  max-width: 760px;
  margin: 56px auto 0;
  padding: 0 24px;
}
.faq-block h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--text-dark);
  margin-bottom: 24px;
}
.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq-item h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.faq-item p {
  font-size: 15px;
  color: var(--text-mid);
  margin: 0;
}

/* ── INLINE CTA ── */
.cta-box {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: white;
  padding: 32px 28px;
  border-radius: 12px;
  margin: 40px auto;
  max-width: 760px;
  text-align: center;
}
.cta-box h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 10px;
}
.cta-box p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-box .btn-cta {
  background: var(--gold-btn);
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.2s;
}
.cta-box .btn-cta:hover {
  background: var(--gold-btn-hover);
  transform: translateY(-1px);
}

/* ── RELATED POSTS ── */
.related {
  max-width: 760px;
  margin: 56px auto 80px;
  padding: 32px 24px 0;
  border-top: 1px solid var(--border);
}
.related h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.related-item {
  display: block;
  padding: 18px;
  background: var(--bg-white);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.related-item:hover {
  border-color: var(--green-mid);
  transform: translateY(-2px);
}
.related-item .label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-mid);
  font-weight: 600;
  margin-bottom: 6px;
}
.related-item .title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.35;
}

/* ── HUB / RESOURCES INDEX ── */
.hub-hero {
  max-width: 900px;
  margin: 48px auto;
  padding: 0 24px;
  text-align: center;
}
.hub-hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 52px);
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.15;
}
.hub-hero p {
  font-size: 18px;
  color: var(--text-mid);
  max-width: 640px;
  margin: 0 auto;
}
.hub-grid {
  max-width: 1100px;
  margin: 32px auto 64px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 700px) {
  .hub-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .hub-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.hub-card {
  background: var(--bg-white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hub-card:hover {
  border-color: var(--green-mid);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(45, 74, 30, 0.08);
}
.hub-card .label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-mid);
  font-weight: 600;
  margin-bottom: 12px;
}
.hub-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 12px;
}
.hub-card p {
  font-size: 15px;
  color: var(--text-mid);
  flex: 1;
  margin-bottom: 16px;
}
.hub-card .read {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-mid);
}

/* ── FOOTER ── */
footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  margin-top: 48px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-logo-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 1px;
}
.footer-note {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-contact {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-contact a {
  color: var(--green-mid);
  text-decoration: none;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  font-size: 13px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--green-mid);
}
