/* Base styles from the main magazine CSS */
@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&family=Fraunces:ital,wght@0,500;0,600;0,700;1,600&display=swap");

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

body {
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background-color: #f8f3eb;
  color: #484847;
  margin: 0;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Responsive wrapper - keeps content centered and within max width */
.responsive-wrapper {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Scroll progress indicator */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.scroll-progress-bar {
  height: 100%;
  background-color: #000;
  width: 0;
  transition: width 0.1s ease;
}

/* Enhanced header styles */
.article-header {
  padding: 2.5rem 0 3.5rem;
  border-bottom: 1px solid #ddd;
  background-color: #f8f3eb;
  position: relative;
}

.article-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #c2dddf, #fabea1, #f8e177);
}

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

.back-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #000;
  color: #fff;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s;
}

.back-button:hover {
  transform: translateX(-3px);
}

.back-button svg {
  width: 24px;
  height: 24px;
}

.reading-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #666;
}

.reading-time svg {
  width: 16px;
  height: 16px;
}

/* Title container styling */
.title-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.title-decoration {
  margin-bottom: 1.5rem;
  position: relative;
}

.title-decoration::before,
.title-decoration::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 80px;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.2);
}

.title-decoration::before {
  right: 45px;
}

.title-decoration::after {
  left: 45px;
}

.title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #eee8dd;
  box-shadow: 0 0 0 8px rgba(240, 233, 223, 0.6);
}

.title-icon svg {
  color: #383838;
}

.article-main-title {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 3rem;
  line-height: 1.1;
  margin: 0 0 1rem 0;
  color: #000;
  position: relative;
}

.article-subtitle {
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
  margin: 0 0 2rem 0;
  color: #484847;
  max-width: 70%;
  line-height: 1.4;
}

.article-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.article-category {
  margin-bottom: 0.5rem;
}

.category-tag {
  background-color: #000;
  color: #fff;
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.reading-time {
  font-size: 0.875rem;
  color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .article-header {
    padding: 1.5rem 0 2.5rem;
  }

  .header-nav {
    margin-bottom: 2rem;
  }

  .title-decoration::before,
  .title-decoration::after {
    width: 30px;
  }

  .title-decoration::before {
    right: 35px;
  }

  .title-decoration::after {
    left: 35px;
  }

  .title-icon {
    width: 48px;
    height: 48px;
  }

  .article-main-title {
    font-size: 2rem;
  }

  .article-subtitle {
    font-size: 1.1rem;
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .article-main-title {
    font-size: 1.75rem;
  }

  .article-subtitle {
    font-size: 1rem;
    max-width: 100%;
  }

  .title-decoration::before,
  .title-decoration::after {
    display: none;
  }
}

/* Main content area styles */
.article-content {
  padding: 2rem 0 4rem;
}

.content-column {
  max-width: 800px;
  margin: 0 auto;
}

/* Banner image styles */
.banner-image {
  margin-bottom: 2rem;
}

.banner-image img {
  width: 100%;
  border: 1px solid #000;
}

.image-caption {
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.5rem;
  text-align: center;
  font-style: italic;
}

/* Table of contents styles */
.table-of-contents {
  background-color: #f0e9df;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #000;
}

.table-of-contents h2 {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #000;
}

.table-of-contents ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.table-of-contents li {
  margin-bottom: 0.5rem;
}

.table-of-contents a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.table-of-contents a:hover {
  color: #888;
}

/* Article section styles */
section {
  margin-bottom: 3rem;
}

section h2 {
  font-family: "Fraunces", serif;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  color: #000;
  border-bottom: 2px solid #000;
  padding-bottom: 0.5rem;
}

section h3 {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #000;
}

section p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

section ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

section li {
  margin-bottom: 0.5rem;
}

/* Article embedded image styles */
.article-image {
  margin: 2rem 0;
}

.article-image img {
  width: 100%;
  border: 1px solid #000;
}

/* Footer styles */
.article-footer {
  background-color: #f0e9df;
  padding: 2rem 0;
  border-top: 1px solid #ddd;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-to-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #000;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
}

.back-to-top svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* Table of Contents Styles */
.toc-container {
  margin: 3rem 0;
  padding: 1.5rem;
  background-color: #f0e9df;
  border: 1px solid #000;
}

.toc-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.toc-title {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-right: 1rem;
  white-space: nowrap;
}

.toc-line {
  flex-grow: 1;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.2);
}

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

.toc-item {
  display: flex;
  text-decoration: none;
  padding: 0.75rem;
  background-color: #f8f3eb;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #484847;
  transition: all 0.2s ease;
  align-items: center;
}

.toc-item:hover {
  background-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.toc-number {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #000;
  margin-right: 1rem;
  opacity: 0.8;
}

.toc-text {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Article Opener with Drop Cap */
.article-opener {
  margin: 2rem 0 3rem;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #000;
}

.drop-cap {
  float: left;
  font-family: "Fraunces", serif;
  font-size: 4rem;
  line-height: 0.8;
  padding-top: 0.1em;
  padding-right: 0.1em;
  padding-left: 0;
  color: #000;
}

/* Stats Box Styling */
.stat-box {
  background-color: #f0e9df;
  padding: 2rem;
  margin: 2.5rem 0;
  border-left: 4px solid #fabea1;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: "Fraunces", serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 0.5rem;
}

.stat-description {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Quote Box Styling */
.quote-box {
  padding: 0 2rem;
  margin: 3rem 0;
  position: relative;
}

.quote-box::before {
  content: "“";
  position: absolute;
  top: -0.5rem;
  left: 0;
  font-family: "Fraunces", serif;
  font-size: 6rem;
  color: #fabea1;
  opacity: 0.4;
  line-height: 1;
}

.quote-box blockquote {
  position: relative;
  z-index: 1;
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  line-height: 1.4;
  margin: 0;
  padding: 0;
  font-style: italic;
}

.quote-box cite {
  display: block;
  margin-top: 1rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  font-style: normal;
  opacity: 0.8;
}

/* Info Callout Styling */
.info-callout {
  display: flex;
  background-color: #c2dddf;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.callout-icon {
  margin-right: 1rem;
  flex-shrink: 0;
}

.callout-content h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-family: "Fraunces", serif;
}

.callout-content p {
  margin: 0;
}

/* Breakthrough Cards Styling */
.breakthrough-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.breakthrough-card {
  padding: 1.5rem;
  background-color: #f8f3eb;
  border: 1px solid #000;
  transition: transform 0.2s;
}

.breakthrough-card:hover {
  transform: translateY(-5px);
}

.breakthrough-card h3 {
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #000;
}

.breakthrough-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* Challenges Container Styling */
.challenges-container {
  margin: 2rem 0;
}

.challenge-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.challenge-item:last-child {
  border-bottom: none;
}

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

.challenge-header h3 {
  font-family: "Fraunces", serif;
  margin: 0;
  color: #000;
}

.challenge-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8e177;
  border-radius: 50%;
}

.challenge-item p {
  margin: 0;
}

/* Future Vision Styling */
.future-vision {
  position: relative;
  margin: 3rem 0;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid #000;
}

.future-vision-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("https://images.unsplash.com/photo-1473341304170-971dccb5ac1e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2340&q=80");
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

.future-vision-content {
  position: relative;
  z-index: 1;
}

.future-vision-content h3 {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #000;
}

.future-vision-content p {
  margin: 0;
}

/* Concluding Thoughts Styling */
.concluding-thoughts {
  margin: 3rem 0;
  padding: 2rem;
  background-color: #f0e9df;
  border-left: 4px solid #000;
}

.concluding-thoughts p:last-child {
  margin-bottom: 0;
}

/* Enhanced Author Info in Footer */
.author-info {
  display: flex;
  align-items: center;
}

.author-image {
  width: 156px;
  height: 64px;
  overflow: hidden;
  margin-right: 1rem;
  flex-shrink: 0;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-details p {
  margin: 0;
  font-size: 0.85rem;
  max-width: 350px;
}

.author-details p.group-info {
  font-weight: 500;
  color: #777;
}

.vertical {
  border-left: #777 1px solid;
  height: 100%;
  margin: 0 1rem 0 0;
  height: 64px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .toc-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .breakthrough-cards {
    grid-template-columns: 1fr;
  }

  .quote-box blockquote {
    font-size: 1.25rem;
  }

  .author-info {
    flex-direction: column;
    text-align: center;
  }

  .author-image {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .author-details p {
    max-width: 100%;
  }

  .vertical {
    display: none;
  }
}

.credits {
  color: black;
  text-decoration: none;
}
