/* SharifStudy blog landing-page manual article rail and grid. */
.ss-blog-showcase,
.ss-blog-showcase * {
  box-sizing: border-box;
}

.ss-blog-showcase {
  --ss-blog-ink: #17383b;
  --ss-blog-muted: #607274;
  --ss-blog-brand: #ff5e15;
  --ss-blog-brand-dark: #c93f00;
  --ss-blog-green: #004044;
  --ss-blog-soft: #f5f9f8;
  --ss-blog-line: #d4e1e0;
  --ss-blog-gap: 12px;
  --ss-blog-title-lines: 2;
  --ss-blog-mobile-title-lines: 3;
  clear: both;
  direction: rtl;
  width: 100%;
  max-width: 100%;
  margin: 0 0 30px;
  color: var(--ss-blog-ink);
  font-family: inherit;
  text-align: right;
}

.ss-blog-showcase a {
  text-decoration: none !important;
}

.ss-blog-showcase__header {
  min-height: 50px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 10px;
}

.ss-blog-showcase__heading-wrap {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.ss-blog-showcase__heading-mark {
  width: 4px;
  height: 29px;
  flex: 0 0 4px;
  margin-top: 1px;
  background: var(--ss-blog-brand);
  border-radius: 4px;
}

.ss-blog-showcase__heading-copy {
  min-width: 0;
}

#main-content .entry .ss-blog-showcase__title,
.ss-blog-showcase__title {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ss-blog-green) !important;
  border: 0 !important;
  font-family: inherit !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  line-height: 1.45 !important;
  text-transform: none !important;
}

.ss-blog-showcase__title a,
.ss-blog-showcase__title a:visited {
  color: var(--ss-blog-green) !important;
}

.ss-blog-showcase__description {
  margin: 2px 0 0 !important;
  padding: 0 !important;
  color: var(--ss-blog-muted);
  font-size: 12.75px;
  font-weight: 500;
  line-height: 1.7 !important;
}

.ss-blog-showcase__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.ss-blog-showcase__all {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  color: var(--ss-blog-brand-dark) !important;
  background: #fff7f2;
  border: 1px solid #ffd1ba;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.ss-blog-showcase__all:hover,
.ss-blog-showcase__all:focus-visible {
  color: #fff !important;
  background: var(--ss-blog-brand-dark);
  border-color: var(--ss-blog-brand-dark);
  outline: 0;
}

.ss-blog-showcase__frame {
  position: relative;
  overflow: hidden;
  padding: 12px;
  background: linear-gradient(145deg, #fff 0%, #fbfdfc 70%, #fff9f5 100%);
  border: 1px solid var(--ss-blog-line);
  border-radius: 11px;
  box-shadow: 0 7px 22px rgba(8, 51, 54, .05);
}

.ss-blog-showcase__frame::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--ss-blog-green) 0 72%, var(--ss-blog-brand) 72% 100%);
  pointer-events: none;
}

.ss-blog-showcase__track {
  min-width: 0;
  display: grid;
  gap: var(--ss-blog-gap);
}

.ss-blog-showcase--rail .ss-blog-showcase__track {
  grid-auto-flow: column;
  grid-template-rows: minmax(0, 1fr);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px;
  cursor: grab;
  scroll-behavior: smooth;
  scroll-padding-inline: 2px;
  scroll-snap-type: inline proximity;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.ss-blog-showcase--rail .ss-blog-showcase__track:active,
.ss-blog-showcase.is-dragging .ss-blog-showcase__track {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

.ss-blog-showcase--rail .ss-blog-showcase__track::-webkit-scrollbar {
  display: none;
}

.ss-blog-showcase--cards-2 .ss-blog-showcase__track {
  grid-auto-columns: calc((100% - 12px) / 2);
}

.ss-blog-showcase--cards-3 .ss-blog-showcase__track {
  grid-auto-columns: calc((100% - 24px) / 3);
}

.ss-blog-showcase--cards-4 .ss-blog-showcase__track {
  grid-auto-columns: calc((100% - 48px) / 4.18);
}

.ss-blog-showcase--cards-5 .ss-blog-showcase__track {
  grid-auto-columns: calc((100% - 48px) / 5);
}

.ss-blog-showcase--grid.ss-blog-showcase--cards-2 .ss-blog-showcase__track {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ss-blog-showcase--grid.ss-blog-showcase--cards-3 .ss-blog-showcase__track {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ss-blog-showcase--grid.ss-blog-showcase--cards-4 .ss-blog-showcase__track {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ss-blog-showcase--grid.ss-blog-showcase--cards-5 .ss-blog-showcase__track {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ss-blog-showcase__card,
.ss-blog-showcase__end-card {
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce7e5;
  border-radius: 8px;
  scroll-snap-align: start;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ss-blog-showcase__card:hover,
.ss-blog-showcase__card:focus-within,
.ss-blog-showcase__end-card:hover,
.ss-blog-showcase__end-card:focus-within {
  border-color: rgba(255, 94, 21, .46);
  box-shadow: 0 7px 17px rgba(8, 51, 54, .08);
  transform: translateY(-2px);
}

.ss-blog-showcase__card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--ss-blog-ink) !important;
}

.ss-blog-showcase__card-link:focus-visible,
.ss-blog-showcase__end-link:focus-visible {
  outline: 2px solid var(--ss-blog-brand);
  outline-offset: -3px;
}

.ss-blog-showcase__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 310 / 165;
  overflow: hidden;
  background: #eaf0ef;
  line-height: 0;
}

.ss-blog-showcase__image,
.entry .ss-blog-showcase__image {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform .28s ease;
}

.ss-blog-showcase__card:hover .ss-blog-showcase__image,
.ss-blog-showcase__card:focus-within .ss-blog-showcase__image {
  transform: scale(1.025);
}

.ss-blog-showcase__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 45%, #fff 0 18%, transparent 19%), linear-gradient(145deg, #edf4f3, #fff7f2);
}

.ss-blog-showcase__placeholder img {
  width: 45px;
  height: 45px;
  opacity: .7;
}

.ss-blog-showcase__body {
  min-width: 0;
  min-height: 70px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 11px 12px 12px;
}

.ss-blog-showcase__date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 8px;
  color: #718486;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.45;
}

.ss-blog-showcase__date::before {
  content: "";
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  background: var(--ss-blog-brand);
  border-radius: 50%;
}

#main-content .entry .ss-blog-showcase__card-title,
.ss-blog-showcase__card-title {
  display: -webkit-box !important;
  overflow: hidden;
  min-height: calc(1.65em * var(--ss-blog-title-lines));
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ss-blog-ink) !important;
  border: 0 !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.65 !important;
  text-align: right;
  text-transform: none !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--ss-blog-title-lines);
}

.ss-blog-showcase__end-card {
  background: linear-gradient(145deg, #f2f8f7, #fff8f3);
}

.ss-blog-showcase__end-link {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 10px;
  color: var(--ss-blog-green) !important;
  text-align: center;
}

.ss-blog-showcase__end-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
  color: #fff;
  background: var(--ss-blog-green);
  border-radius: 50%;
  font-family: "Segoe UI Symbol", Arial, sans-serif;
  font-size: 19px;
  line-height: 1;
  transition: transform .18s ease, background .18s ease;
}

.ss-blog-showcase__end-link strong {
  color: var(--ss-blog-green);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.5;
}

.ss-blog-showcase__end-card:hover .ss-blog-showcase__end-icon,
.ss-blog-showcase__end-card:focus-within .ss-blog-showcase__end-icon {
  background: var(--ss-blog-brand-dark);
  transform: translateX(-3px);
}

.ss-blog-showcase__edge-nav {
  position: absolute;
  z-index: 6;
  top: 50%;
  width: 38px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  color: var(--ss-blog-green);
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--ss-blog-line);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(8, 51, 54, .14);
  font-family: inherit;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity .18s ease, color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.ss-blog-showcase__edge-nav span,
.ss-blog-showcase__all > span:last-child {
  display: block;
  font-family: "Segoe UI Symbol", Arial, sans-serif;
  line-height: 1;
}

.ss-blog-showcase__edge-nav--previous span {
  transform: rotate(180deg);
}

.ss-blog-showcase__edge-nav--previous {
  right: 7px;
}

.ss-blog-showcase__edge-nav--next {
  left: 7px;
}

.ss-blog-showcase__edge-nav:hover,
.ss-blog-showcase__edge-nav:focus-visible {
  color: #fff;
  background: var(--ss-blog-green);
  border-color: var(--ss-blog-green);
  outline: 0;
  transform: translateY(-50%) scale(1.04);
}

.ss-blog-showcase__edge-nav:disabled,
.ss-blog-showcase.is-not-scrollable .ss-blog-showcase__edge-nav {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

@media only screen and (max-width: 985px) {
  .ss-blog-showcase--rail .ss-blog-showcase__track {
    grid-auto-columns: calc((100% - 24px) / 3);
  }

  .ss-blog-showcase--grid .ss-blog-showcase__track {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media only screen and (max-width: 680px) {
  .ss-blog-showcase {
    --ss-blog-gap: 10px;
    margin-bottom: 38px;
  }

  .ss-blog-showcase__header {
    min-height: 0;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
  }

  .ss-blog-showcase__heading-wrap {
    gap: 8px;
  }

  .ss-blog-showcase__heading-mark {
    height: 25px;
  }

  #main-content .entry .ss-blog-showcase__title,
  .ss-blog-showcase__title {
    font-size: 19px !important;
  }

  .ss-blog-showcase__description {
    max-width: 245px;
    font-size: 11.75px;
    line-height: 1.65 !important;
  }

  .ss-blog-showcase__all {
    min-height: 37px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .ss-blog-showcase__frame {
    padding: 10px;
    border-radius: 9px;
  }

  .ss-blog-showcase--rail.ss-blog-showcase--mobile-compact .ss-blog-showcase__track {
    grid-auto-columns: 32%;
  }

  .ss-blog-showcase--rail.ss-blog-showcase--mobile-balanced .ss-blog-showcase__track {
    grid-auto-columns: 43.5%;
  }

  .ss-blog-showcase--rail.ss-blog-showcase--mobile-wide .ss-blog-showcase__track {
    grid-auto-columns: 49%;
  }

  .ss-blog-showcase--grid .ss-blog-showcase__track {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .ss-blog-showcase__edge-nav {
    display: none !important;
  }

  .ss-blog-showcase__body {
    min-height: 63px;
    padding: 9px 10px 10px;
  }

  .ss-blog-showcase__date {
    margin-bottom: 8px;
    font-size: 9.5px;
  }

  #main-content .entry .ss-blog-showcase__card-title,
  .ss-blog-showcase__card-title {
    min-height: calc(1.7em * var(--ss-blog-mobile-title-lines));
    font-size: 12.75px !important;
    line-height: 1.7 !important;
    -webkit-line-clamp: var(--ss-blog-mobile-title-lines);
  }

  .ss-blog-showcase__end-link {
    padding: 10px 7px;
  }

  .ss-blog-showcase__end-icon {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }

  .ss-blog-showcase__end-link strong {
    font-size: 13px;
  }
}

@media only screen and (max-width: 370px) {
  .ss-blog-showcase__description {
    display: none;
  }

  .ss-blog-showcase__all {
    padding-inline: 8px;
    font-size: 10.5px;
  }

  .ss-blog-showcase--rail.ss-blog-showcase--mobile-balanced .ss-blog-showcase__track {
    grid-auto-columns: 43%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ss-blog-showcase *,
  .ss-blog-showcase *::before,
  .ss-blog-showcase *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}