/* ============================================================
   NCCHANCE.org — Shared Sub-Page Styles (chance.css)
   Used by: blog.html, blog/post-*.html
   Design tokens match index.html exactly.
   ============================================================ */

:root {
  --navy:        #1a2c4e;
  --navy-light:  #243556;
  --red:         #b03040;
  --red-dark:    #8c2433;
  --beige:       #f4efe7;
  --beige-dark:  #ece5da;
  --gray-light:  #f2f2f2;
  --white:       #ffffff;
  --text-dark:   #1c1c1c;
  --text-mid:    #3d3d3d;
  --text-light:  #6b6b6b;
  --gold:        #c4a45a;
  --font: 'DM Sans', sans-serif;
  --max-width: 1160px;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(0,0,0,0.09);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--beige);
  font-size: 16px;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
#main-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 68px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo {
  height: 50px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

nav { display: flex; align-items: center; }

nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
  list-style: none;
}

nav ul li a {
  display: block;
  color: rgba(255,255,255,0.88);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

nav ul li a.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: 4px;
}
nav ul li a.nav-cta:hover { background: var(--red-dark); }

.nav-social {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,0.15);
}

.nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.2s, background 0.2s;
}

.nav-social a:hover {
  border-color: var(--gold);
  background: rgba(196,164,90,0.15);
}

.nav-social svg {
  width: 16px;
  height: 16px;
  fill: rgba(255,255,255,0.8);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 900px) {
  .hamburger { display: block; }

  nav ul {
    display: none;
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px 0 24px;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }

  nav ul.open { display: flex; }
  nav ul li { width: 100%; }
  nav ul li a {
    padding: 14px 24px;
    font-size: 0.92rem;
    border-radius: 0;
  }

  .nav-social { display: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

footer h5 {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 700;
}

footer p, footer li {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}

footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 8px; }

footer a { transition: color 0.2s; }
footer a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a:hover { color: var(--gold); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   BLOG INDEX — hero
   ============================================================ */
.blog-hero {
  background: var(--navy);
  padding: 72px 0 64px;
  text-align: center;
  color: white;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: white;
  margin-bottom: 16px;
}

.blog-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ============================================================
   BLOG INDEX — card grid
   ============================================================ */
.blog-section {
  padding: 64px 0 80px;
  background: var(--beige);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--beige-dark);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

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

.blog-card-num {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 8px;
  flex: 1;
}

.blog-card-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 10px;
}

.blog-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: auto;
}

.blog-card-cta::after {
  content: '→';
  transition: transform 0.2s;
}

.blog-card:hover .blog-card-cta::after {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   BLOG POST PAGE
   ============================================================ */

/* LinkedIn follow button — appears below post date */
.post-li-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
  margin-bottom: 32px;
  margin-top: 6px;
}
.post-li-btn:hover { background: #0a66c2; }
.post-wrap {
  background: var(--beige);
  padding: 48px 0 80px;
}

.post-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 32px;
}

.post-breadcrumb a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s;
}

.post-breadcrumb a:hover { text-decoration-color: var(--navy); }

article.post {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 56px;
  box-shadow: var(--shadow);
  border: 1px solid var(--beige-dark);
  max-width: 820px;
  margin: 0 auto;
}

.post-meta-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

article.post h1 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 8px;
}

.post-date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 36px;
  font-weight: 500;
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-dark);
}

.post-body p { margin-bottom: 1.15em; }

.post-body h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.post-body h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}

.post-body ul {
  padding-left: 1.5rem;
  list-style: disc;
  margin-bottom: 1.15em;
}

.post-body ol {
  padding-left: 1.5rem;
  list-style: decimal;
  margin-bottom: 1.15em;
}

.post-body li { margin-bottom: 0.4em; }

.post-body strong { font-weight: 700; }

.post-body a {
  color: var(--navy);
  text-decoration: underline;
  font-weight: 600;
}
.post-body a:hover { color: var(--gold); }

.post-body blockquote {
  border-left: 4px solid var(--gold);
  background: rgba(196,164,90,0.07);
  padding: 16px 20px;
  margin: 1.5em 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-mid);
}

/* "Ruth's Truth" callout */
.ruths-truth {
  background: var(--navy);
  color: white;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 2.5em;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.65;
}

.ruths-truth .rt-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

/* Post prev/next nav */
.post-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--beige-dark);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  gap: 12px;
}

.post-nav a {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--beige-dark);
  background: var(--white);
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}

.post-nav a:hover {
  background: var(--beige-dark);
  border-color: var(--navy);
}

.post-nav .back-link {
  color: var(--text-light);
  font-size: 0.82rem;
  text-decoration: none;
  font-weight: 600;
}
.post-nav .back-link:hover { color: var(--navy); }

@media (max-width: 768px) {
  article.post { padding: 28px 20px; }
  .post-nav { flex-wrap: wrap; }
}

/* Safety exit */
#safety-exit {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.65rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  z-index: 9999;
  text-decoration: none;
  line-height: 1.3;
  box-shadow: 0 4px 16px rgba(176,48,64,0.4);
  transition: background 0.2s;
  font-family: var(--font);
}

#safety-exit:hover { background: var(--red-dark); }
