.article-content {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px dotted var(--gray);
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-content {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
  }
}

.article-content__container {
  position: relative;
}

.article-content__background {
  background-color: #F1FFED;
  padding-top: 2rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-content__background {
    padding-bottom: 8rem;
    margin-bottom: 0;
  }
}

.article-content__wrapper {
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}

.article-content__image {
  width: 100%;
  padding-bottom: 2rem;
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-content__image {
    width: 50%;
    padding-bottom: 0;
  }
}

.article-content__header {
  width: 100%;
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-content__header {
    width: 50%;
    padding-left: 2rem;
  }
}

.article-content__header h1 {
  font-size: 32px;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

/* For small phone only */
@media (max-width: 320px) {
  .article-content__header h1 {
    font-size: 24px;
  }
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-content__header h1 {
    font-size: 42px;
  }
}

.article-content__header > p {
  font-size: 16px;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px dotted var(--gray);
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-content__header > p {
    font-size: 18px;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px dotted var(--gray);
  }
}

.article-content__header .article-content__date {
  font-size: 0.90em;
  text-transform: uppercase;
  padding-bottom: unset;
  border-bottom: unset;
}

/* TABLE OF CONTENTS */
.article-content-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-top: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  border-top: 1px dotted var(--gray);
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-content-toc {
    padding-top: 0;
    margin-top: 0;
    border-top: 0;
  }
}

.article-content-toc h2 {
  max-width: 100%;
  font-size: 16px;
  font-family: var(--body-font-family);
  font-weight: bold;
  margin-bottom: 2rem;
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-content-toc h2 {
    max-width: 100px;
  }
}

.article-content-toc ol {
  width: 100%;
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-content-toc ol {
    width: auto;
    flex: 1;
  }
}

.article-content-toc ol li:not(:last-of-type) {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dotted var(--gray);
}

.article-content-toc ol li a {
  display: flex;
  align-items: center;
}

.article-content-toc ol li a aside {
  width: 32px;
  height: 32px;
  background-color: var(--black);
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 100px;
}

.article-content-toc ol li a p {
  margin-left: 1rem;
}

.article-content__card {
  max-width: 800px;
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-content__card {
    max-width: 800px;
    margin-top: -100px;
  }
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-content__content {
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--gray);
    background-color: var(--white);
  }
}

.article-content__content p,
.article-content__content ol,
.article-content__content ul {
  padding-bottom: 1rem;
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-content__content p,
  .article-content__content ol,
  .article-content__content ul,
  .article-content__content h1,
  .article-content__content h2,
  .article-content__content h3,
  .article-content__content h4 {
    max-width: 600px;
    margin-left: auto !important;
  }
}

.article-content__content li {
  margin-left: 0.50rem;
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-content__content li {
    margin-left: 2rem;
  }
}

/* GOOGLE MAP */
.article-content__googlemap {
  width: 100%;
  height: 100%;
}

.article-content__content iframe {
  width: 100%;
  display: block;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* Base Styles for Media Embeds */
.article-content__content .media {
  position: relative;
  width: 100%;
  margin: 1rem 0;
}

.article-content__content .media iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

/* Support for CKEditor's aspect ratio wrapper */
.article-content__content .media [data-oembed-url] {
  position: relative;
  width: 100%;
}

@media (min-width: 900px) {

  .article-content__content .media [data-oembed-url],
  .article-content__content .media {
    max-width: 600px;
    margin-left: auto !important;
  }
}

.article-content__content h2 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 24px;
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-content__content h2 {
    font-size: 28px;
  }
}

.article-content__content h3 {
  font-size: 20px;
  font-family: var(--body-font-family);
  font-weight: bold;
  margin-bottom: 1rem;
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-content__content h3 {
    font-size: 24px;
  }
}

/* General styling for both ul and ol under .article-content__content */
.article-content__content ul,
.article-content__content ol {
  margin: 0 0 1.5rem 1.5rem; /* Adds space before and after the list */
  padding: 0; /* Removes default padding */
  line-height: 1.6; /* Sets a readable line height */
  font-size: 1rem; /* Standard font size */
  color: #333; /* List text color */
}

/* Unordered List (ul) under .article-content__content */
.article-content__content ul {
  list-style-type: disc; /* Default bullet style */
}

/* Ordered List (ol) under .article-content__content */
.article-content__content ol {
  list-style-type: decimal; /* Default numbering style */
}

/* Nested lists (ul and ol) under .article-content__content */
.article-content__content ul ul,
.article-content__content ol ul,
.article-content__content ul ol,
.article-content__content ol ol {
  margin-left: 1.5rem; /* Indents nested lists */
  margin-bottom: 1.5rem;
}

/* Styling list items under .article-content__content */
.article-content__content ul li,
.article-content__content ol li {
  margin-bottom: 0.5rem; /* Adds space between list items */
}

.article-content__content hr {
  margin-bottom: 1rem;
  border-top: 1px solid var(--gray);
}

.article-content__content figcaption a:hover,
.article-content__content a:hover {
  font-weight: bold;
  color: var(--primary-color);
}

.article-content__content figure img {
  width: 100%;
  height: auto;
  aspect-ratio: auto !important;
}

.article-content__content figure figcaption {
  font-family: var(--body-font-family);
  font-size: 0.80em;
  font-style: italic;
  text-align: center;
  color: var(--secondary-color-darkened);
  margin-top: 0.50rem;
  margin-bottom: 1rem;
}

.article-content__author {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px dotted var(--gray);
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-content__author {
    max-width: 600px;
    margin-left: auto;
  }
}

.article-content__author figure {
  width: 27%;
  height: 27%;
  margin-bottom: 1rem;
  margin-right: 1rem;
  overflow: hidden;
  border-radius: 100px;
  border: 1px solid var(--gray);
}

/* For tablet portrait only */
@media (min-width: 600px) and (max-width: 899px) {
  .article-content__author figure {
    width: 17%;
    height: 17%;
  }
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-content__author figure {
    width: 17%;
    height: 17%;
  }
}

/* Remove drop cap from author name */
.article-content__author p:first-of-type::first-letter {
  float: unset;
  font-size: unset;
  line-height: unset;
  margin-right: unset;
  color: unset;
  font-family: unset;
}

.article-content__author p:first-of-type {
  font-size: 0.85em;
  font-weight: bold;
  margin-bottom: unset;
  padding-bottom: unset;
}

/* For tablet portrait only */
@media (min-width: 600px) and (max-width: 899px) {
  .article-content__author p:first-of-type {
    font-size: 1.20em;
  }
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-content__author p:first-of-type {
    font-size: 1.20em;
  }
}

.article-content__author p {
  font-size: 0.80em;
}

/* For tablet portrait only */
@media (min-width: 600px) and (max-width: 899px) {
  .article-content__author p {
    font-size: 1em;
  }
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-content__author p {
    font-size: 1em;
  }
}

.article-content__content .table {
  width: 100%;
  color: var(--primary-color-darkened);
  overflow-x: auto; /* Allows horizontal scrolling */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on touch devices */
}

.article-content__sidebar {
  width: 100%;
  position: sticky;
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-content__sidebar {
    width: calc(500px - 64px);
    top: 2rem;
    margin-top: 10rem;
  }
}

.article-content__sticky-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--gray);
  background-color: var(--white);
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-content__sticky-card {
    justify-content: space-between;
  }
}

.article-content__sticky-card header {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-content__sticky-card header {
    width: 50%;
  }
}

.article-content__sticky-card p {
  font-size: 0.80em;
  text-transform: uppercase;
}

.article-content__sticky-card h2 {
  font-size: 1.40em;
}

.article-content__sticky-card figure {
  width: 100%;
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-content__sticky-card figure {
    width: 50%;
  }
}

.article-content__navigation {
  text-align: end;
}