 /* Progress Circle Style */
span.lowercase {
  text-transform: lowercase;
}

#story-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9990;
}

#progress-circle {
  width: 60px;
  height: 60px;
}

#story-progress {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.2s linear;
}

/* Page Styles */

html[dir="rtl"] {
  .single-article-content {
    margin-right: auto;
    margin-left: unset;
  }

  .info-article {
    /* background-image: linear-gradient(90deg,
        var(--color-secondary-bg) 100%,
        #f2295b00 79%);*/
  }

  .general-info {
    padding: 0 1em 0 3em;
    border-right: 1px solid var(--color-primary-text);
    border-left: unset;
  }

  .page-item {
    .ssp-icon {
      transform: rotate(180deg);
    }
  }
}

p:not([class]) {
  padding: 0;
  margin: 0;
}

.site-main {
  display: flex;
  width: 100%;
}

.single-aside {
  height: 100vh;
  position: fixed;
  top: 80px;
  max-width: 40%;
  width: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: end;
  justify-content: center;
}

.aside-mobile {
  display: none;
}

.info-article {
  background-color: transparent;
  padding: 1em;
  display: flex;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1rem;
}

.country-label {
  writing-mode: tb-rl;
  display: flex;
  justify-content: flex-end;
  transform: rotate(180deg);
  transition: transform 1s ease-in-out;
  justify-content: center;
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-md);
  padding-left: 5px;

  &.link {
    color: var(--color-gray-text);
    letter-spacing: 2px;
  }
}

.general-info {
  padding: 0em 3em 0em 1em;
  border-left: 1px solid var(--color-primary-text);
}

.story-writer {
  display: block;
  padding-bottom: 0.9em;
  color: var(--e-global-color-primary);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);

  &.link {
    color: var(--color-primary-text);
    letter-spacing: 2px;
  }
}

.story-name {
  margin: 0;
  display: block;
  margin-bottom: 1em;
  color: var(--color-primary-text);
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  text-transform: capitalize;
  overflow-wrap: anywhere;
}

.general-info .single-story-time-read {
  color: var(--color-gray-text);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  display: flex;
  gap: 5px;

  .ssp-icon {
    max-height: 20px;
  }
}

.site-main .wp-post-image {
  height: 100vh;
  width: 100%;
  object-fit: cover;
}

.single-article-content {
  width: 100%;
  max-width: 60%;
  margin-left: auto;
  padding: 3% 3% 0 3%;
  box-sizing: border-box;
}

.language-story {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-extra-bold);

  .language-label {
    color: var(--color-primary-text);
  }

  .language {
    font-weight: var(--font-weight-medium);
    padding: 13px 20px;
    transition: 0.4s;
    color: var(--color-primary-text);

    &:hover,
    &.current {
      color: var(--color-gray-text);
    }
  }
}

.info-content {
  display: flex;
  flex-direction: column;
  background-color: var(--color-border);
  background-position: bottom left;
  background-repeat: no-repeat;
  background-size: 8px auto;
  margin: 2em 0;
  padding: 0;
  color: #313131;
  font-family: var(--font-family-primary);
}

.info-content-author {
  font-style: italic;
  text-align: end;
  margin: 0;
}

.view-info {
  display: flex;
  justify-content: space-between;
  padding: 18px 25px;
  font-size: var(--font-size-md-sm);
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
  user-select: none;
}

.view-info .ssp-icon {
  max-height: 15px;
  transition: transform 0.2s ease;
}

.view-info .ssp-icon-rotate {
  transform: rotateX(180deg);
}

.text-block {
  display: none;
  background-color: #e3e3e3;
  box-sizing: border-box;
  word-break: break-all;
  font-family: var(--font-family-primary);
  font-size: var(--font-size-md-sm);
  font-weight: var(--font-weight-normal);
  line-height: 1.9em;
  padding: 18px 25px;
  overflow: hidden;

  p {
    padding: 1em 3em 1em 3em;
  }
}

.widget-story {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.button-wrap {
  padding: 10px;
  display: flex;
  align-items: center;
}

.listen-button-wrap {
  padding: 16px;
}

.listen-button {
  padding: 8px 24px;
  box-shadow: 0px 4px 24px -3px #e9e398;
  font-size: var(--font-size-sm);
  letter-spacing: 2px;
  display: flex;
  gap: 5px;
  align-items: center;
  line-height: 25px;

  .ssp-icon {
    height: 16px;
  }
}

.stories-headphones-icon {
  display: flex;
}

.share-button {
  display: flex;
}

.text-container {
  position: relative;
}

.text-container,
.story_translated_by {
  padding: 1em 1em 2.5em 1em;
}

/* Rate block */
.rate-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 3rem;
}

.rate-title {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  padding: 1em;
}

.rate-icon-wrapper {
  display: flex;
  gap: 16px;

  .ssp-icon {
    width: 32px;
    height: 32px;
  }
}


.star-rating-block {
  text-align: center;
}

.star-rating-title {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  margin: 1em 0;
}

.star-rating {
  display: flex;
  gap: 12px;
  overflow: hidden;
  position: relative;
  z-index: 10;
  align-items: center;
}

.star-rating-wrapper {
  display: inline-flex;
  position: relative;
}

.star-rating-point {
  line-height: 1;
  font-size: 50px;
  position: relative;
  display: block;
}

.star-rating-point:before,
.star-rating-point:after {
  display: block;
}

.star-rating-point:before {
  content: '☆';
  font-size: 36px;
  transition: all 0.2s ease;
}

.star-rating-point:after {
  content: '★';
  opacity: 0;
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  font-size: 50px;
  transition: all 0.2s ease;
}

.star-rating--overlay {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 100%;
  height: 100%;
}


.star-rating-point--overlay:before {
  content: '★';
}

.star-rating--action {
  flex-direction: row-reverse;
}

.star-rating--action .star-rating-point {
  cursor: pointer;
}

.star-rating--action .star-rating-point:hover:before,
.star-rating--action .star-rating-point:hover~.star-rating-point:before {
  font-size: 40px;
}

.star-rating--action .star-rating-point:hover:after,
.star-rating--action .star-rating-point:hover~.star-rating-point:after {
  opacity: 1;
  font-size: 40px;
}

.star-rating-label {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: var(--font-family-primary);
  font-size: inherit;
  font-weight: 600;
  margin: 0 0 10px;
}

.star-rating-label-value {
  font-size: var(--font-size-2xl);
  margin-bottom: -5px;
}

.star-rating-count {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-md-sm);
  margin: 0 0 5px;
  color: var(--color-gray-text);
}

.story-star-rating {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.story-star-rating.loading {
  opacity: 0.4;
  pointer-events: none;
}




/* Font Size Tooltip */
.ssp-font-size-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-family-primary);
  font-size: var(--font-size-s);
  line-height: 1;
}

.ssp-font-size-list li {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 5px;
}

.ssp-font-size-list li+li {
  margin-top: 5px;
}

.ssp-font-size-list h2,
.ssp-font-size-list h3,
.ssp-font-size-list h4 {
  font-family: var(--font-family-secondary);
}

.ssp-font-size-list h2 {
  font-size: 2.2em;
  line-height: 1;
}

.ssp-font-size-list h3 {
  font-size: 1.8em;
  line-height: 1;
}


.ssp-font-size-list h4 {
  font-size: 1.4em;
  line-height: 1;
}

.fz-pt18 h4+span,
.fz-pt22 h3+span,
.fz-pt28 h2+span {
  font-weight: 700;
}

.fz-pt18 .single-article-content .entry-content {
  font-size: 24px;
}

.fz-pt22 .single-article-content .entry-content {
  font-size: 29px;
}

.fz-pt28 .single-article-content .entry-content {
  font-size: 37px;
}

/* ///// */

.story_translated_by {
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-medium);
  letter-spacing: 1px;
  color: var(--color-gray-text);
}

.single .entry-content {
  color: var(--color-primary-text);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: 1.7em;
  letter-spacing: 0.5px;

  hr {
    margin: 0;
  }

  p {
    margin-bottom: 0.9em;

    &:first-child {
      .first-letter {
        padding: 19px;
        font-weight: var(--font-weight-bold);
        margin: 8px 15px 0 0;
        background-color: var(--color-secondary-bg);
        font-size: var(--font-size-6xl);
        float: left;
        width: 1em;
        height: 1em;
        display: flex;
        justify-content: center;
        align-items: center;
      }
    }
  }
}

html[dir="rtl"] .single .entry-content p:first-child .first-letter {
  float: right;
  margin: 8px 0 0 15px;
}

.icon-rotate {
  padding-bottom: 2em;
  text-align: center;
  display: block;

  .ssp-icon {
    height: 18px;
    width: 31px;
  }
}

.stories-page .icon-rotate {
  &:hover {
    transform: scale(1.08);
    transition: all 1s ease;
  }
}

.stories-tags {
  gap: 10px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  max-width: 550px;
  margin: 0 auto;
}

.tag {
  box-sizing: border-box;
  display: inline-flex;
  border-radius: 2em;
  background-color: var(--color-border);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-md-sm);
  font-weight: var(--font-weight-medium);
  padding: 5px 10px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.tag:hover {
  background-color: var(--color-fifth-bg);
}

.entry-footer {
  padding-top: 3em;
}

.entry-footer__block+.entry-footer__block {
  padding-top: 4em;
}

.pagination {
  list-style: none;
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
}

.page-item {
  width: 50%;
  display: flex;

  &:first-child {
    .page-link {
      flex-direction: row-reverse;
      justify-content: start;
    }
  }

  &:last-child {
    .page-link {
      justify-content: end;
    }

    .page-link-text {
      align-items: end;
      text-align: end;
    }
  }

  .ssp-icon {
    height: 12px;
  }
}

.pagination-line {
  background-color: #84879675;
  width: 1px;
  margin: 0 10px;
}

.page-link {
  display: flex;
  text-decoration: none;
  width: 100%;
  align-items: center;
  gap: 15px;
}

.page-link-text {
  display: flex;
  flex-direction: column;
  font-size: var(--font-size-base);
  font-family: var(--font-family-secondary);
  font-weight: var(--font-weight-extra-bold);
  color: var(--color-primary-text);
}

.pagination-link {
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-normal);

  &.link {
    color: var(--color-primary-text);

    &:hover {
      color: var(--color-gray-text);
    }
  }
}

.offers-text {
  display: flex;
  margin-top: 3em;
  padding: 1em;
  letter-spacing: 2px;
}

.offers-label {
  color: var(--color-primary-text);
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-2xl);
  text-transform: capitalize;
  width: 60%;
  display: flex;
  align-items: center;

  .ssp-icon {
    max-height: 18px;
    max-width: 18px;
    vertical-align: top;
    padding: 0 1rem;
  }

  .text-bold {
    font-weight: var(--font-weight-extra-bold);
  }

  .text-em {
    font-weight: var(--font-weight-semibold);
    font-style: italic;
    padding-left: 0.3em;
  }
}
html[dir="rtl"] {
  .offers-label .text-em {
    padding-left: 0;
    padding-right: 0.3em;
  }
}

.outline-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40%;
}

.outline {
  width: 100%;
  border-top: 1px solid var(--color-primary-text);
}

.proposal-container {
  display: flex;
  min-height: 378px;
}

.proposed-block {
  display: flex;
  width: 50%;
  text-decoration: none;
}

.proposed-image {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  max-height: 320px;
  margin: 1em;
  width: 100%;
  transition: 0.4s;
  cursor: pointer;

  &:hover {
    box-shadow: 0px 25px 50px -4px rgba(47.99999999999999, 61.00000000000001, 81.99999999999999, 0.26);
  }
}

.proposed-backout-image {
  background-image: linear-gradient(180deg, #c6474700 18%, #1c1f2eed 82%);
  opacity: 0.98;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.8em;
  box-sizing: border-box;
  height: 100%;
}

.proposed-story-time {
  color: var(--color-secondary-text);
  fill: var(--color-secondary-text);
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family-primary);

  .audio-icon {
    height: 20px;
  }

  .ssp-icon {
    height: 18px;
  }

  .time-read-icon {
    display: flex;
    gap: 2px;
  }
}

.proposed-story-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.related_story_author {
  font-family: var(--font-family-primary);
  color: var(--color-secondary-text);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: var(--font-size-base);
}

.proposed-story-title {
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-xl-lg);
  font-weight: var(--font-weight-extra-bold);
  color: var(--color-secondary-text);
  margin: 5px 0;
}

.proposed-story-info .story-icon-book {
  background-color: var(--color-secondary-text);
  padding: 12px;
  border-radius: 50px;
  width: fit-content;
  text-align: center;
  line-height: 0;
}

.proposed-button {
  margin-top: 1em;
  text-align: center;
  font-size: var(--font-size-s);
  padding: 1em;
  width: 45px;
  letter-spacing: 1px;
  line-height: 0;
  transition: all 1s ease;

  &:hover {
    padding: 0.8em;

    p {
      position: relative;
    }
  }
}

@media (max-width: 1024px) {

  .favorite-wrap {
    align-items: flex-end;
    flex-direction: row-reverse;
  }

  .stories-page {
    flex-direction: column;
  }

  .story-progress-container {
    display: none;
  }

  .single-aside {
    display: none;
  }

  .info-article--desktop {
    display: none;
  }

  .single-article-content {
    max-width: 100%;
  }

  .aside-mobile {
    display: flex;
    flex-direction: column;
  }

  .post-thumbnail {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .post-thumbnail .wp-post-image {
    height: 40vh;
    object-fit: cover;
    object-position: center center;
    width: 100%;
  }

  html[dir="rtl"] .general-info,
  .general-info {
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .story-writer {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    text-align: center;
    padding: 2rem 1rem 0;
  }

  .story-name {
    margin: 0;
    font-size: var(--font-size-6xl);
    text-align: center;
  }

  .general-info .single-story-time-read {
    padding: 10px 0;
    color: var(--color-primary-text);
    font-size: var(--font-size-md-sm);

    .ssp-icon {
      max-height: 16px;
    }
  }

  .widget-story {
    justify-content: space-between;
    flex-direction: row-reverse;
  }

  .proposed-button {
    display: none;
  }
}

@media (max-width: 768px) {

  .single-article-content {
    padding-bottom: 64px;
  }

  .language-story {
    padding-bottom: 0.5em;

    .language {
      font-size: var(--font-size-md-sm);
      padding: 13px;
    }
  }

  .story-writer {
    &.link {
      font-size: var(--font-size-md);
    }
  }

  .story-name {
    font-size: var(--font-size-4xl);
    line-height: 1.3em;
  }

  .general-info .single-story-time-read {
    padding: 20px 0;
  }

  .info-content {
    margin-bottom: 1em;
    margin-top: 1em;
    padding: 0;

    .info-title {
      font-size: var(--font-size-s);
    }

    .view-info {
      padding: 16px 24px;
    }
  }

  .listen-button {
    padding: 0.5em 1em;
  }

  .text-container {
    padding: 0 0.5em;
  }

  .pagination-link {
    font-size: var(--font-size-s);
  }

  .offers-label {
    width: auto;
    flex-wrap: wrap;

  }

  .outline-wrapper {
    display: none;
  }

  .proposal-container {
    flex-direction: column;

    &:first-child {
      padding-bottom: 24px;
    }

    .proposed-block {
      width: 100%;
    }

    .proposed-image {
      min-height: 220px;
    }

    .related_story_author {
      font-size: var(--font-size-sm);
    }

    .proposed-story-title {
      font-size: var(--font-size-lg);
    }
  }


}

.font-size-toggle {
  font-family: var(--font-family-secondary);
  font-weight: 700;
  font-size: 24px;
  text-decoration: none;
  color: var(--color-primary-text);
}

/********* Story Bookmark ************/
/* Styles for the bookmark highlight */
.story-bookmark-highlight,
.story-bookmark-highlight p {
  background-color: rgba(255, 255, 0, 1);
  /* Lighter yellow */
  /* border-bottom: 2px solid orange; */
  cursor: default;
  /* No special cursor on highlight itself, icon is clickable */
  position: relative;
  /* For potential pseudo-elements or if icon was child */
}

/* Common styles for all bookmark icons (SVG handled as img) */
.story-bookmark-icon {
  /* Position is set by JavaScript */
  /* width and height set by JavaScript, but can have defaults */
  width: 20px;
  height: 20px;
  object-fit: contain;
  /* Ensure SVG scales nicely */
  transition: transform 0.5s ease;
}

.story-bookmark-icon:hover {
  transform: translateY(-0.5em);
}

/* Specific class for the temporary add icon if needed, but mostly handled by JS */
.story-bookmark-icon-temp-add {
  /*  Specific styles if any */
}

/* Specific class for the persistent filled icon if needed */
.story-bookmark-icon-filled {
  /* Specific styles if any */
}

/* Ensure the main text container allows for space on its left if icons are placed there */
/* This is an example, adjust based on your theme's layout and icon positioning strategy */
/*
.single-article-content .text-container {
    position: relative; // If icons are absolutely positioned relative to this
    padding-left: 40px; // Example: Make space for icons if they are in flow or pushed by JS
}
*/

/********* Alternative related posts *********/
.alternative-related-posts-title {
  font-family: var(--font-family-secondary);
  font-weight: var(--font-weight-normal);
}
.new_what_to_read_section {
  color: #fff;
  font-family: "Assistant", Sans-serif;
  padding: 60px 0px 60px 0px;
  display: flex;
  gap: 3rem;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
}
.new_what_to_read_container {
  max-width: 1140px;
  text-align: center;
  padding: 0 1rem;
}
.new_what_to_read_top_header {
  font-size: 2rem;
  text-align: center;
  padding: 1rem;
  background: #1C1F2E;
}
h2.new_what_to_read_center_header_top {
  font-size: 4.4rem;
  font-weight: 600;
  text-align: center;
  color: #fff;
  margin: 0;
}
.custom_writer_story_buttons_wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.new_what_to_read_center_header_center {
  font-size: 2rem;
}
.new_what_to_read_center_header_bottom {
  font-size: 1.4rem;
}

.cwsb_item.pt_plus_adv_button.ab-cta .adv-button-link-wrap {
  color: #1C1F2E;
    background: #FFEE33;
  font-size: 1.2rem;
  border: none;
  border-radius: 1rem;
  padding: 0.3rem 0.8rem;
}
.cwsb_item.pt_plus_adv_button.ab-cta .adv-button-link-wrap:hover {
  background: #85E9E1;
}
.new_what_to_read_bottom_section {
  display: flex;
    justify-content: center;
  width: 100%;
  color: #1C1F2E;
  background-color: #85E9E1;
  font-size: 2.5rem;
  text-shadow: rgba(255, 255, 255, 0.5) 0 0 20px;
  transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
  margin-top: 0px;
  margin-bottom: 0px;
  padding: 2rem 0em 2rem 0em;
  position: absolute;
    bottom: 0;
  text-align: center;
}
@media (max-width: 768px) {
  .new_what_to_read_top_header {
    font-size: 1.6rem;
  }
  .new_what_to_read_center_header_top {
    font-size: 3.2rem;
  }
  .new_what_to_read_center_header_center {
    font-size: 1.7rem;
  }
  .new_what_to_read_center_header_bottom {
    font-size: 1.3rem;
  }
  .custom_writer_story_buttons_wrap {
    margin-top: 4rem;
  }
  .new_what_to_read_bottom_section {
    font-size: 2rem;
  }
  .cwsb_item.pt_plus_adv_button.ab-cta .adv-button-link-wrap {
    font-size: 1.1rem;
  }
}