.article-body .article-author, .article-text .article-author, .content-text .article-author {
  text-align: center !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
}
.article-title, .article-subtitle {
  width: 100% !important;
  display: block !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  scroll-padding-top: 120px;
  font-family: sans-serif;
  color: #1f2937;
  background-color: #f3f4f6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
}

main {
  padding-top: 110px;
  min-height: calc(100vh - 110px);
}

header {
  background-color: #000000;
  color: white;
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-container {
  max-width: 72rem;
  width: 100%;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.header-container a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.header-container a:hover {
  text-decoration: underline;
}

content {
  flex: 1;
  display: block;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem;
  background-color: white;
  box-sizing: border-box;
}

footer {
  width: 100%;
  padding: 1rem 0;
  position: fixed;
  bottom: 0;
  background-color: #1f2937;
  z-index: 1000;
}

.footer-container {
  max-width: 72rem;
  width: 100%;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  color: white;
  box-sizing: border-box;
}

.footer-container p {
  margin: 0;
  text-align: center;
  font-size: 0.875rem;
  color: white;
}

.footer-container a {
  color: #516395 !important;
  text-decoration: none;
  font-weight: bold;
}

.footer-container a:hover {
  text-decoration: underline;
}

.articles-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin: 2rem 0;
  box-sizing: border-box;
}

.article-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #516395;
}

.article-card h3 {
  margin-bottom: 1rem;
  color: #1f2937;
}

.article-meta {
  color: #6b7280;
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 1rem;
}



.articles-cta a {
  color: #516395 !important;
  font-weight: bold;
  text-decoration: none;
}

.articles-cta a:hover {
  text-decoration: underline;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-align: center !important;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center !important;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

a {
  color: #5b6b97 !important;
  text-decoration: none;
}

li {
  color: #4b5563;
  font-size: 1.125rem;
  text-align: left;
  margin-bottom: 2rem;
}

p {
  color: #4b5563;
  font-size: clamp(0.9rem, 2.25vw, 1.2rem);
  margin-bottom: 1.125rem;
  text-align: justify;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.logo {
  max-width: 400px;
  height: auto;
}

nav {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

nav a {
  color: white;
}

contact {
  display: block;
  margin: 1rem 0;
  text-align: center;
}

/* General content container */
.content-container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  box-sizing: border-box;
  padding-bottom: 6rem;
}

/* General content-text for non-index pages */
body:not(.index-page) .content-text {
  flex: 1 1 calc(50% - 0.5rem);
  padding: 1rem;
  box-sizing: border-box;
  min-width: 300px;
  max-width: 72rem;
}

/* Index page content-text override */
body.index-page .content-text {
  /* Center the text within the first grid column */
  max-width: 30vw;
  justify-self: start;
  align-self: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 25vw;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
}

/* Index page specific - hero image styling */
.hero-image {
  flex: 0 0 50vw;
  min-width: 300px;
  padding: 0;
  box-sizing: border-box;
  height: calc(100vh - 110px - 60px);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  position: absolute;
  right: 0;
  top: 110px;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: calc(100vh - 110px - 60px);
  object-fit: cover;
  object-position: right top;
}

/* Index page container adjustments for hero image layout */
body.index-page .content-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  width: 100vw;
  padding: 0;
  padding-bottom: 6rem;
  margin: 0;
}

body.index-page .content-text {
  /* Center the text within the first grid column */
  max-width: 30vw;
  justify-self: start;
  align-self: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  width: 25vw;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
}

/* Index page hero image adjustments */
body.index-page .hero-image {
  /*flex: 0 0 66.67vw;
  width: 66.67vw;*/
  position: relative;
  padding: 0;
  margin: 0;
  width: 100vw;
}

/* About page specific - about image styling */
.about-image {
  flex: 1 1 calc(70% - 0.5rem);
  min-width: 300px;
  padding: 1rem;
  box-sizing: border-box;
  text-align: center;
}


.insights-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  box-sizing: border-box;
}

.insights-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-sizing: border-box;
}

.contact-text {
  flex: 1 1 calc(50% - 0.5rem);
  box-sizing: border-box;
  min-width: 300px;
  margin: 0 auto;
  background: white;
  order: 1;
  padding: 2rem;
  max-width: 72rem;
  position: relative;
  z-index: 1;
}

.contact-text p {
  margin-top: 1rem;
  text-align: center;
}

.contact-text h2 {
  text-align: center;
}

.contact-text a {
  color: #516395 !important;
  font-weight: bold;
}

.contact-text a:hover {
  text-decoration: underline;
}

.breadcrumb-nav {
  margin-bottom: 2rem;
}

.back-link {
  color: #516395 !important;
  text-decoration: none;
  font-weight: bold;
}

.back-link:hover {
  text-decoration: underline;
}

.insights-card h3 a {
  color: inherit;
  text-decoration: none;
}

.insights-card h3 a:hover {
  text-decoration: underline;
}

.learn-more-link {
  color: #516395 !important;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.5rem;
}

.learn-more-link:hover {
  text-decoration: underline;
}

.image-caption {
  text-align: center;
  margin-top: 1rem;
}

.image-caption p {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #1f2937;
  text-align: center;
}

.linkedin-link {
  color: #516395 !important;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid #516395;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.linkedin-link:hover {
  background-color: #516395;
  color: white !important;
  text-decoration: none;
}

/* Viewport width indicator in header */
#viewport-width {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  padding: 0.25rem 0.5rem;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  font-size: 0.875rem;
  border-radius: 0.25rem;
}

@media (min-width: 768px) {
  .content-container {
    flex-direction: row;
    flex-wrap: nowrap;
    width: 67%;
  }

  .content-text {
    order: 1;
    flex: 1 1 100%;
    padding: 2rem;
    max-width: 72rem;
    position: relative;
    z-index: 1;
  }

  /* Index page - hero image on the right, full height */
  .hero-image {
    order: 2;
    flex: 0 0 50vw;
    text-align: right;
    height: calc(100vh - 110px - 60px);
    padding: 0;
    position: absolute;
    right: 0;
    top: 110px;
    z-index: 1;
  }

  /* Index page content text adjustments when hero image is present */
  body.index-page .content-text {
    flex: 0 0 33.33vw;
    text-align: left;
    /*max-width: 33.33vw;*/
    padding: 2rem;
    /* center text between left edge and hero image */
    margin-left: calc((100vw - 40vw - 33.33vw) / 2);
    width: 33.33vw;
  }

  /* Index page hero image on desktop */
  body.index-page .hero-image {
    order: 2;
    flex: 0 0 33.33vw;
    text-align: right;
    height: calc(100vh - 110px - 60px);
    padding: 0;
    position: absolute;
    scale: 1;
    right: 0;
    top: 110px;
    z-index: 1;
    width: 40vw;
  }

  .hero-image img {
    width: 100%;
    height: calc(100vh - 110px - 60px);
    object-fit: cover;
    object-position: right top;
  }

  /* About page - about image centered */
  .about-image {
    order: 2;
    flex: 1 1 50%;
    text-align: center;
  }

  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .content-container {
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
    padding-bottom: 6rem;
  }

  /* Mobile - both images above text and centered */
  .hero-image {
    order: 1;
    flex: 1 1 auto;
    text-align: center;
    height: auto;
    padding: 1rem;
    position: relative;
    right: auto;
    top: auto;
    z-index: auto;
    object-fit: cover;
  }

  .hero-image img {
    width: 100vw;
    height: auto;
    object-fit: contain;
    object-position: center;
    background-color: #f3f4f6;

  }

  .about-image {
    order: 1;
    flex: 1 1 auto;
    text-align: center;
  }

  .content-text {
    order: 2;
    flex: 1 1 auto;
    background-color: #ffffff;
    min-width: 78vw;
  }

  /* Stack hero image and text on index page for mobile */
  body.index-page .content-container {
    display: flex;
    flex-direction: column;
    padding-bottom: 6rem;
  }
}

/* Article loading and navigation styles */
.article-loading, .article-error {
  text-align: center;
  padding: 3rem 0;
}

.article-nav {
  margin-bottom: 2rem;
  text-align: left;
}

.back-button {
  background: #516395;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.back-button:hover {
  background: #3f4f7a;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(81, 99, 149, 0.3);
}
.article-title {
  font-size: 2.4em;
  font-weight: bold;
  margin-bottom: 0em;
  text-align: center !important;
}
.article-subtitle {
  font-size: 1.8em;
  font-weight: normal;
  color: #848484;
  margin-bottom: 0em;
  text-align: center !important;
}

.back-button:active {
  transform: translateY(0);
}

/* Article content styling when loaded */
.content-text article,
.content-text main {
  max-width: none;
}

.content-text h1 {
  color: #1f2937;
  margin-bottom: 1.5rem;
}

.content-text h2 {
  color: #374151;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-text p {
  line-height: 1.7;
  margin-bottom: 1.2rem;
  color: #4b5563;
}

/* articles/*.html pages specific styles */
.article-body, .article-text {
  word-break: break-word;
  overflow-wrap: break-word;
  flex: 1 1 calc(70% - 0.5rem);
  min-width: 300px;
  padding: 1rem;
  box-sizing: border-box;
  max-width: 72rem;
  padding-bottom: 6rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.article-heading_1, .article-heading_2, .article-heading_3, .article-heading_4, .article-heading_5, .article-heading_6 {
  text-align: left !important;
}

.article-title {
    font-size: 2.4em;
    font-weight: bold;
    margin-bottom: 0.0em;
    text-align: center !important;
}

.article-subtitle {
    font-size: 1.8em;
    font-weight: normal;
    color: #848484;
    margin-bottom: 0em;
    text-align: center !important;
}

.article-author {
  font-size: 1.2em;
  font-weight: normal;
  color: #6b7280;
  margin-bottom: 0.5em;
  text-align: center !important;
}

.article-heading_1 {
    font-size: 1.6em;
    font-weight: bold;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    text-align: left;
}

.article-heading_2 {
    font-size: 1.4em;
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 0.4em;
    text-align: left;
}

.article-heading_3 {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 0.8em;
    margin-bottom: 0.3em;
    text-align: left;
}

.article-heading_4 {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 0.6em;
    margin-bottom: 0.2em;
    text-align: left;
}

.article-heading_5 {
    font-size: 1em;
    font-weight: bold;
    margin-top: 0.4em;
    margin-bottom: 0.1em;
    text-align: left;
}

.article-heading_6 {
    font-size: 0.9em;
    font-weight: bold;
    margin-top: 0.2em;
    margin-bottom: 0.1em;
    text-align: left;
}

.article_paragraph {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 1em;
    text-align: justify;
}

.article_list {
    margin: 1em 0 1em 2em;
    padding-left: 0;
}

.article_list_item {
    margin-bottom: 0.5em;
    list-style-position: inside;
}

.article_reference {
    font-size: 0.9em;
    color: #999;
    margin-top: 1em;
}

.article-table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
    font-size: 0.95em;
}

.article-table th {
    background-color: #eee;
    font-weight: bold;
    text-align: left;
}

.article-table td, .article-table th {
    border: 1px solid #ccc;
    padding: 6px;
}

.nextworx {
  display: block;
  margin-top: 2rem;
  font-size: 2rem;
}