/* =========================
   Single Article Page Style
========================= */

:root {
  --text-muted-white: #ffffffcc;
  --brand-bg-gray: #0245441A;
  --space-section: 48px;
}

/************* Top progress bar *****************/
#scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #F0F4F7;
  z-index: 99999;
}

.admin-bar #scroll-progress-container {
  top: 32px;
}

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

/************* Article Header Global*****************/
.article-stack > * + * {
  margin-top: var(--space-section);
}

.article-stack {
  padding-bottom: var(--space-section);
}

.article-stack .container {
  padding-left: 0;
  padding-right: 0;
}


/************* Article Header *****************/
.article-header {
  position: relative;
  margin-bottom: 48px;
}

.article-header__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 950px;
  text-align: center;
  margin: 0 auto;
}

.article-header__meta {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.taxonomy-chip {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: var(--font-size-xsmall);
  line-height: 1;
}

.read-time {
  display: flex;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
}

.read-time::before {
  content: '';
  display: block;
  height: 14px;
  width: 14px;
  background: url('../../blocks/_assets/images/Timer.svg') no-repeat center / contain;
}

.article-header__subtitle {
  color: var(--text-muted-white);
  padding: 0;
}

.article-header__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: var(--font-size-xsmall);
  line-height: 1.4;
  color: var(--text-muted-white);
}

.article-author-name strong {
  text-decoration: underline;
}

.article-meta-divider {
  width: 1px;
  height: 12px;
}

/* Featured Image */
.article-header--with-image {
  margin-bottom: 0;
}

.article-header--with-image::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 34%;
  background: #ffffff;
  z-index: 0;
}

.article-header__media {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  margin: 48px auto 0;
}

.article-header__image {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 16px;
}

/* Tablet */
@media (max-width: 1024px) {
  .article-header--with-image::after {
    height: 28%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .article-header__image {
    aspect-ratio: 4 / 3; /* nicer mobile crop */
  }
}

/* Mobile small devices */
@media (max-width: 480px) {
  .article-header--with-image::after {
    height: 20%;
  }
}

/************* Key Takeaways *****************/

.key-takeaways__list {
  padding: 0;
}

.key-takeaways__list li {
  line-height: 1.7;
}

.key-takeaways__inner {
  padding: 32px;
  border-radius: 12px;
  background: var(--brand-bg-gray);
}

.key-takeaways__title {
  color: #02454480;
  font-size: 16px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.key_takeaways__list ul li {
  color: var(--color-grey);
  font-weight: 300;
}

.key_takeaways__list ul li::before {
  height: 5px;
  width: 5px;
}

/************* CTA Sidebar *****************/

.sticky-content__title {
  font-size: 22px;
  line-height: 1.2;
}

.sticky-cta__right {
  margin: 0 0 48px 0;
  padding: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-radius: 12px;
}

.sticky-cta__inner {
  background: #FBFAF9;
}

.sticky-cta__feature {
  display: block;
  aspect-ratio: 16 / 9;
}

.sticky-cta__feature img {
  border-radius: 12px 12px 0 0;
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.sticky-cta__content {
  padding: 16px;
}

.sticky-content__title, .sticky-content__more {
  color: var(--color-dark-green);
}

.sticky-content__excerpt {
  color: var(--color-grey);
  padding-bottom: 20px;
  line-height: 1.4;
}

.sticky-cta__content a{
  border-bottom: none;
}

.sticky-cta__content a.sticky-content__more::after {
  content: none;
}

.sticky-content__more {
  font-size: 16px;
  line-height: 28px;
  text-decoration: underline;
}

/************* CTA Jump links *****************/

.article-jump-links {
  margin: 0 0 48px 0;
}

@media (max-width: 991px) {
  .sticky-sidebar {
    position: static !important;
    width: auto;
  }
}


.article-jump-links__title {
  color: var(--color-dark-green);
  font-size: 20px;
  line-height: 1.4;
}

.article-jump-links__list li {
  padding: 12px;
  font-size: 18px;
  font-weight: 300;
  color: var(--color-dark-green);
  margin: 0;
}

.article-jump-links__list li a::after{
  content:none;
}

.article-jump-links__list li a {
  border-bottom: 0;
  color: var(--color-dark-green);
  display: block;
  line-height: 1.4;
}

.article-jump-links__list li::before {
  content: none;
}

.article-jump-links ul.article-jump-links__list {
  padding: 0;
}

.wrapper--mid {
  max-width: 814px;
  margin: 0 auto;
}

/************* Share Article *****************/

.article-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
}

/* Left section */
.article-share__left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-dark-green);
  flex: 1;
}

.article-share__icon {
  width: 17px;
  height: 18px;
}

.article-share__label {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

/* Right section */
.article-share__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.article-share__actions a {
  border-bottom: none;
}

.article-share__actions a::after {
  content: none;
}

.share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 27px;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

/************* Tags *****************/

.article-tags__title {
  color: #02454480;
  font-size: 16px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.article-tags__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tags__list a:hover {
  border: 1.5px solid #02454433;
}

.article-tags__list a::after {
  content: none;
}

.article-tag {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border: 1.5px solid #02454433;
    border-radius: 24px;
    font-size: 13px;
    color: var(--color-dark-green);
    text-decoration: none;
    background: #FBFAF9;
}

/************* Related Articles *****************/

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns, 3), 1fr);
  gap: 32px;
}

a.article-link {
  border-bottom: none;
}

.related-articles__grid a.article-link::after {
  content: none;
}

.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  border-bottom: 1px solid #0245441A;
}

.article-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.article-card__image img {
  border-radius: 12px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card__content {
  padding: 32px 0px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card__meta {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.article-card__category,
.article-card__readtime {
  border-radius: 4px;
  font-size: 12px;
}

.article-card__category {
  padding: 6px 8px;
  background-color: #0245441A;
  white-space: nowrap;
  line-height: 1;
}

.article-card__readtime::before {
  content: '';
  display: block;
  height: 14px;
  width: 14px;
  background: url('../../blocks/_assets/images/Timer_tr.svg');
}

.article-card__readtime {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid var(--color-dark-green);
  background-color: transparent;
  white-space: nowrap;
  line-height: 1;
}

.article-card__title {
  font: var(--font-heading);
  line-height: 1.2;
}

.article-card__excerpt {
  font-size: var(--font-size-small);
}

.article-card__author {
  font-size: var(--font-size-xsmall);
  color: #024544CC;
  padding-top: 12px;
  margin-top: auto;
}

@media (max-width: 1024px) {
  .related-articles__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .related-articles__grid {
    grid-template-columns: 1fr;
    gap: 20px
  }
}

@media (max-width: 480px) {
  .related-articles__grid {
    grid-template-columns: 1fr;
    gap: 20px
  }

  .related-articles__inner {
    padding-left: 12px;
    padding-right: 12px;
  }
}


@media (min-width: 1024px) {
  .sticky-sidebar {
    position: sticky !important;
    top: 100px;
  }

  .admin-bar .sticky-sidebar {
    top: 130px;
  }
}

@media (min-width: 1366px) {

  .sticky-sidebar {
    position: sticky !important;
    top: 140px;
  }

  .admin-bar .sticky-sidebar {
    top: 170px;
  }
  
}


[id="scroll-progress-container"] .page-header.js-scrolled {
  top: 4px !important;
}

.block-references .block-references__content {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.article-section {
  scroll-margin-top: 100px;
}

.block-references__content {
  font-size: 14px;
  color: var(--color-grey, #505F74);
}

.IN-widget {
  display: none !important;
}

.article-section h1,
.article-section h2,
.article-section h3,
.article-section h4,
.article-section h5,
.article-section h6 {
  color: #024544;
  font-weight: 400;
  line-height: 1.4;
  padding: 0;
  margin-bottom: 16px;
}


.article-section h1 {
  font-size: 40px;
}

.article-section h2 {
  font-size: 24px;
}

.article-section h3 {
  font-size: 20px;
}

.article-section h4 {
  font-size: 18px;
}

.article-section h5 {
  font-size: 16px;
}

.article-section h6 {
  font-size: 14px;
}
