main {
  background-color: #f5f6f7;
}

section {
  min-height: unset;
  opacity: 1;
}

.main-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  background-color: white;
  padding: 0 0px 1em 0px;
}

.status-section {
  margin-top: 15px;
}

.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 5px;
}

.status-published {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-draft {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.status-archived {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-unpublished {
  background-color: #e2e3e5;
  color: #383d41;
  border: 1px solid #d6d8db;
}

.admin-label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.admin-text {
  color: #856404;
  font-style: italic;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-eye {
  font-size: 14px;
}

.article-detail {
  width: 900px;
}

.article-detail,
.related {
  padding: var(--navbar-height-sticky) 15px var(--navbar-height-sticky) 15px;
}

.article-presentation a {
  padding-left: 0;
  margin-left: 0;
  color: var(--sub-text-color);
  font-size: var(--font-meta-size);
}

.article-presentation a:hover {
  color: #000;
  text-decoration: underline;
}

.article-title {
  margin: 15px 0;
}

.article-detail .meta {
  border-top: 1px solid var(--sub-text-color);
  padding: 15px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: var(--font-meta-size);
}

.article-detail .meta * {
  color: var(--sub-text-color);
}

.article-detail .meta span * {
  display: inline;
  vertical-align: middle;
}

.article-section {
  display: block;
  margin: 0 5px;
}

.related {
  width: 330px;
}

.related h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 25px;
  padding-bottom: 10px;
  display: inline-block;
}

.related .featured {
  padding: 0 10px;
  background-color: #efefef;
  min-height: 120px;
  height: fit-content;
  margin-bottom: 10px;
  border-radius: 6px;
}

/* hack to avoid position absolute  */
.related .featured h6 {
  margin-left: -10px;
}

.related .featured p {
  text-align: center;
  padding: 20px 0;
}

.related > div {
  display: flex;
  flex-direction: column;
}

.related div article {
  padding: initial;
}

.related section h5,
.related section p {
  margin-top: 10px;
}

.related section p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 5px 0px;
}

.related section span img {
  height: unset;
  object-fit: unset;
  width: 14px !important;
}

.related section span * {
  display: inline;
  vertical-align: middle;
}

.related-container > p {
  margin-bottom: 10px;
}

.related .title {
  padding: 15px;
  color: #fff;
  border-radius: 4px;
  background-color: var(--secondary-color);
  width: fit-content;
  font-size: 13px;
  font-weight: bold;
}

.related .related-container {
  margin: 0 10px;
}

.related .related-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: space-between;
}

.related .related-articles a {
  max-width: 300px;
  width: 300px;
}

.related header img {
  max-height: 200px;
  object-fit: cover;
  border-radius: 6px;
  aspect-ratio: 3 / 2;
}

/* Hovers */

.related .featured:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

.related section h5:hover {
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

article,
.related > a {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

article .meta span:hover {
  color: #333;
  transition: color 0.3s ease;
}

article h1:hover {
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

.related div article:hover,
.related > a {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgb(0 0 0 / 3%);
}

@media (max-width: 860px) {
  .main-container {
    flex-wrap: wrap;
  }
  .related {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .related .related-articles a {
    max-width: unset;
    width: unset;
  }

  .related header img {
    max-height: unset;
  }
}

@media (max-width: 480px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

/* service carousel overrides */
.services-carousel {
  max-width: 1400px;
  background-color: #fff;
  margin: auto;
  padding: 60px 0;
}
section#services.swip {
  margin: auto !important;
  max-width: uset;
}
