/* ==========================
   ROOT VARIABLES
========================== */
:root {
  --bg: #ffffff;
  --text: #1f2937;
  --accent: #0056FF;
  --accent-hover: #003ECC;
  --cta-text: #ffffff;
  --section-heading: #1F4287;
  --paragraph: #333333;
  --header-bg: #ffffff;
  --background: #ffffff;
  --section-bg: #ffffff;
  --header-shadow: rgba(0,0,0,0.05);
  --border-color: #ddd;
  --dropdown-hover-bg-light: #f0f0f0;
  --footer-bg-light: #f8f8f8;
  --footer-text-light: #555;
  --card-bg: #d0eaff;
  --quote-light: #fff9db;
  --quote-dark: #002933;
}

body.dark {
  --accent: #00FFFF;
  --accent-hover: #00cccc;
  --card-bg: #0e011b;
  --background: #0e011b;
  --section-bg: #0e011b;
  --border-color: #444;
  --cta-text: #000000;
  --section-heading: #ffffff;
  --paragraph: #dddddd;
  --bg: #1A1038;
}
/* Hero Section Styles */
.post1-hero {
  width: 100%;
  padding: 6rem 2rem 4rem;
  background: linear-gradient(to bottom right, #121212, #1e1e1e); /* Dark mode default */
  color: #fff;
  transition: background 0.3s ease;
}

html.light-mode .post1-hero {
  background: linear-gradient(to bottom right, #ffffff, #dceeff);
  color: #111;
}

.post1-hero-content {
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
  position: relative;
}
strong {
  color: var(--accent);
  font-weight: 600;
}
.post1-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #ccc;
}

html.light-mode .post1-meta {
  color: #666;
}

.post1-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.post1-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  color: inherit;
}

.post1-subhead {
  font-size: 1.3rem;
  font-weight: 500;
  color: #aaa;
  margin-bottom: 2rem;
  max-width: 700px;
}

html.light-mode .post1-subhead {
  color: #444;
}

.post1-hero-visual {
  margin-top: 2.5rem;
  text-align: center;
}

.post1-hero-visual img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

/* Bottom Line Section */
.bottom-line-callout {
  margin: 3rem auto;
  padding: 1rem;
  display: flex;
  justify-content: center;
  animation: fadeUp 0.9s ease-out both;
}

.bottom-line-box {
  background-color: var(--card-bg);
  border-left: 6px solid var(--accent);
  padding: 1.5rem 1.75rem;
  border-radius: 1rem;
  max-width: 750px;
  width: 100%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  position: relative;
  transition: background-color 0.3s ease;
}

body.dark .bottom-line-box {
  box-shadow: 0 0 24px var(--accent);
  background: var(--card-bg);
}

.bottom-line-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.bottom-line-label {
  font-variant: small-caps;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.copy-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--accent);
  transition: color 0.3s ease;
}

.copy-btn:hover {
  color: var(--accent-hover);
}

/* Fade-in animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.bottom-line-box {
  background-color: var(--card-bg); /* already set: #d0eaff in light mode */
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.35);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

body.dark .bottom-line-box {
  background-color: #1A1038;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.35); /* deep violet glow in dark mode */
}
/* Layout */
.blog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .blog-layout {
    display: block;
  }

  .toc-container {
    position: relative;
    margin-bottom: 2rem;
    max-width: 100%;
  }

  .blog-content {
    max-width: 100%;
  }
}

/* TOC Sidebar */
.toc-container {
  position: sticky;
  top: 100px;
  background: var(--card-bg);
  padding: 1rem;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.toc-heading {
  font-size: 0.95rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--section-heading);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 0.5rem;
}

.toc-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.toc-toggle {
  display: none;
}

/* Mobile accordion toggle */
@media (max-width: 768px) {
  .toc-toggle {
    display: block;
    background: transparent;
    color: var(--accent);
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
  }

  .toc-list {
    display: none;
    margin-top: 0.5rem;
    padding-left: 1rem;
  }

  .toc-container.open .toc-list {
    display: block;
  }
}
.chapter-core {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 4rem;
}

.chapter-section {
  padding: 2rem 0;
  border-top: 1px solid var(--border-color, #ccc);
}

.chapter-label  {
  font-variant: small-caps;
  color: var(--accent);
  font-weight: 600;
  font-size: 1 rem;
  letter-spacing: 0.05em;
}


.chapter-heading {
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.chapter-number {
  font-size: 2.5rem;
  color: var(--accent);
}

.chapter-intro {

  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
font-style: italic;
  margin-bottom: 1.25rem;
}

.chapter-subheading {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.pull-quote {
  background-color: #ced8ed;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.35);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}



body.dark .pull-quote {
  background-color: #1A1038;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.35); /* deep violet glow in dark mode */
}

.pull-quote-wrapper {
  display: flex;
  justify-content: left;
  margin: 2rem 0;
}

.pull-quote {
  max-width: 750px;
  font-style: italic;
  
  line-height: 1.6;
  padding: 1rem 1.5rem;
}

.visual-insert {
  margin: 2rem 0;
  text-align: center;
}

.before-after-image {
  max-width: 700px;
  margin: 0 auto;
}

.before-after-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.before-after-image img:hover {
  transform: scale(1.015);
}

.before-after-image figcaption {
  font-size: 0.95rem;
  color: var(--text-secondary, #666);
  margin-top: 0.5rem;
  font-style: italic;
}
.summary-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.summary-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: white;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.summary-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-top: 0.25rem;
}

.summary-text {
  font-size: 1rem;
  line-height: 1.5;
}

body.dark .summary-item {
  background: var(--card-bg-dark, #1a1a1a);
}

.chapter-summary {
  margin-top: 3rem;
  padding: 2rem 1.5rem;
 background-color: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.spaced-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.spaced-list li {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1;
}

.spaced-list strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.1rem;
}
.chapter-box {
  background: var(--chapter-box-bg, #ffffff);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 2rem;
  margin-bottom: 3rem;
}

.chapter-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

/* Dark mode override */
body.dark .chapter-box {
  background: #1d1d1f;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.05);
}

.chapter-flex {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.chapter-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

@media (min-width: 768px) {
  .chapter-flex {
    flex-direction: row;
    align-items: flex-start;
  }

  .chapter-text {
    flex: 1;
    padding-right: 1.5rem;
  }

  .chapter-image {
    flex: 1;
    max-width: 480px;
  }
}
/* ==========================
   GEO Chapter Enhancements
========================== */

.hero-section {
  text-align: center;
  padding: 4rem 2rem 2rem;
}

.hero-section .mini-title {
  color: var(--accent);
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0;
}

.fade-in {
  animation: fadeIn 1.2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.geo-intro {
  max-width: 700px;
  margin: 2rem auto;
  font-size: 1.125rem;
  line-height: 1.75;
}

.flywheel-diagram {
  text-align: center;
  margin: 2.5rem 0;
}

.flywheel-diagram img {
  max-width: 400px;
  width: 100%;
  height: auto;
}

.card-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.card-grid .card {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.card-grid .card:hover {
  transform: translateY(-4px);
}

.card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.card h3 {
  margin-top: 0;
  font-size: 1.5rem;
  color: var(--accent);
}

.icon-box ul {
  list-style: none;
  padding: 0;
}

.icon-box li {
  padding-left: 2rem;
  margin-bottom: 1rem;
  position: relative;
}

.icon-box li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.data-visualization {
  text-align: center;
  margin: 3rem 0 2rem;
}

.data-visualization img {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.data-visualization .caption {
  font-size: 0.95rem;
  color: #6b7280;
  margin-top: 0.75rem;
}

.takeaway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.takeaway-grid h4 {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.takeaway-grid ul {
  padding-left: 1.2rem;
  line-height: 1.6;
}

.geo-button {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  background-color: var(--accent);
  color: var(--cta-text);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
}

.geo-button:hover {
  background-color: var(--accent-hover);
}

.cta {
  text-align: center;
  margin-bottom: 1rem;
margin-top: 2rem;
}
/* ==========================
   CTA SECTION
========================== */
.section-closing-cta {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #d0eaff, #a0e7e5, #f0f0f0, #d0eaff);
  background-size: 300% 300%;
  animation: heroGradientShift 15s ease infinite;
}

body.dark .section-closing-cta {
  background: linear-gradient(135deg, #4e049b, #300369, #8d05e1, #110534, #e834e0);
  background-size: 400% 400%;
}

.section-closing-cta h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.section-closing-cta p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 30px auto;
  color: var(--text);
}

body.dark .section-closing-cta p {
  color: #ffffff;
}

.author-block {
  margin-top: 3rem;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  border-radius: 1rem;
  background: var(--bg-secondary, #f9f9f9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border, #e0e0e0);
}

.dark .author-block {
  background: #111827;
  border: 1px solid #2c2c2c;
  box-shadow: 0 0 12px rgba(0, 86, 255, 0.15);
}

.author-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--accent);
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.author-bio {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.author-link {
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.author-link:hover {
  text-decoration: underline;
}
/* ===============================
   FEATURED ARTICLES SECTION
================================= */
.section-featured-articles {
  padding: 60px 20px;
  max-width: 1200px;
  width: 100%;
text-align: center;
margin: 0 auto;
}

.section-featured-articles h2 {
  font-size: 2rem;
  color: var(--section-heading);
  text-align: center;
  margin-bottom: 40px;
}

.articles-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 769px) {
  .articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.article-card {
  background: var(--card-bg, #d0eaff);
  border: 1px solid var(--border-color, #ddd);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.article-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16/9;
}

.article-content {
  padding: 20px;
  flex: 1;
}

.article-content h3 {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 700;
}

.article-content p {
  font-size: 0.95rem;
  color: var(--paragraph);
  line-height: 1.5;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.read-more:hover {
  color: var(--accent-hover);
}
.article-card a {
  text-decoration: none;
  color: inherit;
}

.article-card a:hover {
  text-decoration: none;
}

.article-card a h3,
.article-card a p {
  text-decoration: none; /* Remove underline on these elements */
}

.article-card a:hover h3,
.article-card a:hover p {
  text-decoration: none; /* Ensure hover also does not add underline */
}

