.single-news-main {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

.single-news-main > *:not(.single-news-bg-svg) {
  position: relative;
  z-index: 2;
}

.single-news-bg-svg {
  position: absolute !important;
  pointer-events: none;
  z-index: 1;
  display: block;
  height: auto;
  max-width: fit-content;
}

.single-news-shape-1 {
  top: 0;
  right: 0;
  width: auto;
}

.single-news-shape-2 {
  top: 20%;
  width: auto;
}

@media (max-width: 1024px) {
}

@media (max-width: 768px) {
}


/* ==========================================================================
   SINGLE NEWS - FEATURED CARD
   ========================================================================== */

.single-news .news-card-inner {
  flex-direction: row-reverse;
  width: 100%;
}

.single-news .news-card--featured {
  background-color: transparent;
  box-shadow: none;
  z-index: 0;
}

@media (max-width: 1024px) {
  .single-news .news-card--featured {
    z-index: 2;
  }
}

.news-card-thumb.news-card-thumb--featured,
.news-card-body.news-card-body--featured {
  flex: 1;
}

.news-card--featured .news-card-body,
.news-card--featured .news-card-top {
  gap: 32px;
}

/* ==========================================================================
   SINGLE NEWS - BODY & META
   ========================================================================== */

.news-section-body {
  max-width: 800px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.single-news-meta {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.single-news-meta__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.single-news-detail {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.news-share {
  font-size: 16px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  color: var(--color-brand-primary-01, #450737);
  gap: 16px;
  margin-top: 2rem;
}

@media screen and (max-width: 1024px) {
  .single-news .news-card-inner {
    flex-direction: column;
    gap: 24px;
  }
  .news-section-body {
    width: 90%;
  }
}

@media screen and (max-width: 768px) {
  .news-section-body {
    width: 100%;
  }
  .single-news-meta__header {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ==========================================================================
   SINGLE NEWS - RELATED NEWS SECTION
   ========================================================================== */

.news-section.related-news {
  background-color: var(--color-brand-secondary-background);
  padding-bottom: 0; 
}

.related-news .related-news-wrapper {
  background-color: var(--color-brand-secondary-background);
}

.related-news .related-news-wrapper .layout-content-wrapper {
  border-radius: var(--border-radius-xxl);
  background-color: var(--color-neutral-01);
  padding: 80px 64px; 
}

.related-news .related-news-wrapper .layout-content-wrapper .news-card {
  border-radius: 0; 
  padding: 0;
  background-color: var(--color-neutral-01);
}

.related-news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.related-news-header__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-basis: 40%;
}

.related-news-header .button-wrapper-transparent {
  display: flex;
  height: fit-content;
}

.related-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 768px) {
  .related-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .related-news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-news-grid .news-card-inner {
  flex-direction: column;
  gap: 24px;
}

.related-news-grid .news-card-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}

.related-news-grid .news-team-member-details {
  display: none;
}

.related-news-grid .news-team-member-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-news-grid .team-social-links svg {
  height: 18px;
  width: 18px;
}

@media (max-width: 1080px) {
  .related-news-header__text {
    flex-basis: 60%;
  }
}

@media (max-width: 768px) {
  .related-news-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 2rem;
  }
  
  .related-news .related-news-wrapper .layout-content-wrapper {
    padding: 40px 24px;
    border-radius: var(--border-radius-xl);
  }
}

@media (max-width: 450px) {
  .related-news-header {
    align-items: center;
  }
  
  .related-news-header__text {
    text-align: center;
  }
  
  .related-news-header .button-wrapper-transparent {
    width: 100%;
  }
  
  .related-news-header .button-primary {
    width: 100%;
    justify-content: center;
  }
}