/* ==========================================================================
   NAT GHOTRA SKIN - JOURNAL & JOURNAL DETAIL STYLES
   Exact TrueKind Architecture & Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Journal Listing Page (#blog)
   -------------------------------------------------------------------------- */
#blog {
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: contain;
  margin-top: 0;
  padding-bottom: 4rem;
}

@media (max-width: 767.98px) {
  #blog {
    background-position: top;
  }
}

.blog__intro {
  margin-top: 12rem;
  position: relative;
  text-align: center;
}

@media (max-width: 767.98px) {
  .blog__intro {
    margin-top: 8rem;
  }
}

.blog__intro-title {
  font-family: 'PP Mori', sans-serif;
  font-size: 6.5rem;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  text-align: center;
  text-transform: uppercase;
  color: #2f2f2f;
}

@media (max-width: 767.98px) {
  .blog__intro-title {
    font-size: 3.25rem;
    line-height: 1;
  }
}

.blog__intro-title .font-serif {
  font-family: 'Editorial New', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -1px;
  text-transform: none;
  font-size: 1.25em;
  margin-left: 0.1em;
}

.blog__intro-desc {
  font-family: 'PP Mori', sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: #666;
  max-width: 32rem;
  margin: 0 auto;
  line-height: 1.4;
}

.blog__intro .arrow-text {
  height: 32rem;
  position: absolute;
  right: -20rem;
  top: 7rem;
  width: 80rem;
  pointer-events: none;
  opacity: 0.85;
}

@media (max-width: 1200px) {
  .blog__intro .arrow-text {
    display: none;
  }
}

.blog__intro .arrowlong {
  margin-top: 2rem;
  position: absolute;
  right: 15rem;
}

@media (max-width: 991px) {
  .blog__intro .arrowlong {
    position: relative;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    margin: 2.5rem auto 0;
  }
}

/* --------------------------------------------------------------------------
   2. Journal Feed Grid (Asymmetric Editorial Magazine Grid)
   -------------------------------------------------------------------------- */
.blog__feed {
  display: block;
  margin-top: 8rem;
  position: relative;
}

@media (max-width: 767.98px) {
  .blog__feed {
    display: flex;
    flex-direction: column;
    gap: 4.5rem;
    margin-top: 4rem;
  }
}

.blog__feed-item {
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s ease;
}

.blog__feed-item:hover .blog__title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.blog__feed-item .media-img {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #f5f3ef;
}

.blog__feed-item .media-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.18, 0.71, 0.11, 1);
  display: block;
}

.blog__feed-item:hover .media-img img {
  transform: scale(1.05);
}

.blog__category-tag {
  display: inline-block;
  font-family: 'PP Mori', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin-top: 1.4rem;
}

.blog__title {
  font-family: 'PP Mori', sans-serif;
  font-size: 1.85rem;
  font-weight: 400;
  margin: 0.8rem 0 1rem;
  max-width: 35rem;
  text-transform: none;
  line-height: 1.2;
  color: #2b2b2b;
}

@media (max-width: 767.98px) {
  .blog__title {
    font-size: 1.5rem;
    margin: 0.8rem 0;
  }
}

.blog__desc {
  font-family: 'PP Mori', sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  color: #6e6e6e;
  max-width: 34.4rem;
  margin-bottom: 1.2rem;
}

.blog__date {
  display: block;
  font-family: 'PP Mori', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  color: #8c8c8c;
  margin-top: 1.5rem;
  text-transform: uppercase;
}

/* Asymmetric Desktop Layout 1-to-1 with TrueKind */
@media (min-width: 767.99px) {
  .blog__feed-item:first-of-type {
    display: block;
    width: 51.5%;
  }

  .blog__feed-item:first-of-type .media-img {
    height: 38.5rem;
  }

  .blog__feed-item:nth-of-type(2),
  .blog__feed-item:nth-of-type(3) {
    display: inline-block;
    float: right;
    margin: 7rem 0 3rem;
    width: 38%;
  }

  .blog__feed-item:nth-of-type(2) .media-img,
  .blog__feed-item:nth-of-type(3) .media-img {
    height: 28rem;
  }

  .blog__feed-item:nth-of-type(2) {
    margin-left: 2rem;
    margin-top: -8rem;
  }

  .blog__feed-item:nth-of-type(4) {
    display: inline-block;
    float: left;
    width: 46%;
    margin-top: 4rem;
  }

  .blog__feed-item:nth-of-type(4) .media-img {
    height: 44rem;
  }
}

/* --------------------------------------------------------------------------
   3. Single Journal Detail Page (#article)
   -------------------------------------------------------------------------- */
#article {
  margin: 0;
  overflow: hidden;
  position: relative;
  background-color: #fff;
}

#article .article__image {
  height: 85vh !important;
  min-height: 550px;
  margin: 0;
  padding: 0;
  width: 100%;
  position: relative;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  #article .article__image {
    height: 52vh !important;
    min-height: 380px;
  }
}

#article .article__image .parallax-image {
  height: 100%;
  width: 100%;
}

#article .article__image img {
  height: 100% !important;
  width: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* Dark overlapping Header Card */
#article .article__header {
  background: #232323;
  color: #fff;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

@media (min-width: 767.99px) {
  #article .article__header {
    margin-top: -18%;
    min-height: 36rem;
  }

  #article .article__header:after {
    background: #232323;
    content: "";
    height: 100%;
    position: absolute;
    right: -40rem;
    top: 0;
    width: 100%;
    z-index: -1;
  }
}

.article-maxwidth {
  margin: 0 auto;
  max-width: 60rem;
  padding: 5rem;
  width: 100%;
}

@media (max-width: 767.98px) {
  .article-maxwidth {
    padding: 3.5rem 1.5rem;
  }
}

#article .article__header-top {
  display: flex;
  font-family: 'PP Mori', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  gap: 3.5rem;
  opacity: 0.75;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 767.98px) {
  #article .article__header-top {
    gap: 2rem;
    font-size: 0.88rem;
  }
}

#article .article__title {
  font-family: 'PP Mori', sans-serif;
  font-size: 3.6rem;
  font-weight: 500;
  line-height: 1.05;
  margin: 3rem 0 2rem;
  text-transform: none;
  letter-spacing: -0.02em;
  color: #ffffff;
}

@media (max-width: 767.98px) {
  #article .article__title {
    font-size: 2.2rem;
    margin: 2rem 0 1.5rem;
    line-height: 1.15;
  }
}

#article .article__excerpt {
  font-family: 'PP Mori', sans-serif;
  font-size: 1.25rem;
  line-height: 1.45;
  max-width: 85%;
  opacity: 0.75;
  color: #e5e5e5;
}

@media (max-width: 767.98px) {
  #article .article__excerpt {
    font-size: 1.05rem;
    max-width: 100%;
  }
}

/* Header Share Button */
#article .article__share {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  gap: 0.8rem;
  margin-top: 3.5rem;
  position: relative;
  width: fit-content;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

#article .article__share-text {
  font-family: 'PP Mori', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  opacity: 0.85;
}

/* Tooltip Popup for Header Share */
#article .tooltip-big {
  align-items: center;
  background: #232323;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  display: flex;
  gap: 0.6rem;
  left: 0;
  opacity: 0;
  padding: 0.4rem 0.8rem;
  position: absolute;
  top: 140%;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 20;
}

#article .article__share:hover .tooltip-big,
#article .article__share.is-active .tooltip-big {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tooltip-big-item {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  color: #fff;
  transition: background-color 0.2s ease, transform 0.2s ease;
  position: relative;
}

.tooltip-big-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

.tooltip-big-item .tooltip {
  position: absolute;
  top: -2.2rem;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #000;
  color: #fff;
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tooltip-big-item .tooltip.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Floating Down Arrow on Header */
#article .arrowlong-down {
  bottom: -4.5rem;
  height: 9rem;
  position: absolute;
  right: 2rem;
  width: 9rem;
  z-index: 5;
  background-color: #232323;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

#article .arrowlong-down:hover {
  transform: scale(1.08);
  background-color: #333;
}

@media (max-width: 767.98px) {
  #article .arrowlong-down {
    bottom: -3rem;
    height: 6rem;
    right: 15px;
    width: 6rem;
  }
}

/* --------------------------------------------------------------------------
   4. Article Body Content & Sticky Share Sidebar
   -------------------------------------------------------------------------- */
#article .article__content {
  font-family: 'PP Mori', sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.5;
  color: #3b3b3b;
  position: relative;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

@media (max-width: 767.98px) {
  #article .article__content {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* Sticky Social Pill Navigation on Desktop */
.article-share {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: absolute;
  right: 6%;
  top: 6rem;
  z-index: 10;
}

@media (max-width: 1024px) {
  .article-share {
    display: none;
  }
}

.article-share-item.pill {
  align-items: center;
  cursor: pointer;
  display: flex;
  height: 3.2rem;
  width: 3.2rem;
  justify-content: center;
  border: 1px solid #d4d4d4;
  border-radius: 50%;
  color: #3b3b3b;
  background: #ffffff;
  position: relative;
  transition: border-color 0.4s ease, transform 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
}

.article-share-item.pill:hover {
  border-color: #232323;
  background-color: #232323;
  color: #ffffff;
  transform: scale(1.12);
}

.article-share-item.pill:hover svg path {
  fill: #ffffff;
  stroke: #ffffff;
}

.article-share-item.pill .tooltip {
  position: absolute;
  right: 110%;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #232323;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.article-share-item.pill .tooltip.show {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Content Typography */
#article .article__content p {
  font-family: 'PP Mori', sans-serif;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 2rem;
}

#article .article__content p:not(:last-child) {
  margin-bottom: 2.2rem;
}

#article .article__content h2 {
  font-family: 'PP Mori', sans-serif;
  font-size: 2.75rem;
  font-weight: 500;
  line-height: 1.1;
  margin: 5rem 0 2rem;
  text-transform: none;
  color: #222;
}

@media (max-width: 767.98px) {
  #article .article__content h2 {
    font-size: 2rem;
    margin: 3.5rem 0 1.5rem;
  }
}

#article .article__content h2 em {
  font-family: 'Editorial New', serif;
  font-style: italic;
  font-weight: 400;
  color: #111;
}

#article .article__content h3 {
  font-family: 'PP Mori', sans-serif;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 2.5rem 0 1rem;
  text-transform: none;
  color: #2c2c2c;
}

/* Full-width In-content Image Break */
#article .article__content img {
  display: block;
  margin: 4.5rem -6rem;
  width: calc(100% + 12rem);
  max-width: calc(100% + 12rem);
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

@media (max-width: 991px) {
  #article .article__content img {
    margin: 3.5rem -1.5rem;
    width: calc(100% + 3rem);
    max-width: calc(100% + 3rem);
  }
}

/* --------------------------------------------------------------------------
   5. Further Reads Recommendation Section (.article-next)
   -------------------------------------------------------------------------- */
.article-next {
  background-color: #fff;
  padding-bottom: 6rem;
}

.article-next .border {
  border-bottom: 1px solid #d8d8d8;
  width: 100%;
  margin-bottom: 4rem;
}

.article-next-wrapper {
  margin-top: 2rem;
}

.article-next__title {
  font-family: 'PP Mori', sans-serif;
  font-size: 4.8rem;
  font-weight: 600;
  line-height: 0.85;
  text-transform: uppercase;
  position: relative;
  color: #2b2b2b;
}

@media (min-width: 767.99px) {
  .article-next__title {
    margin-top: 6rem;
  }
}

@media (max-width: 767.98px) {
  .article-next__title {
    font-size: 3rem;
    margin-bottom: 3.5rem;
    text-align: center;
  }
}

.article-next__title .font-serif {
  font-family: 'Editorial New', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -1px;
  text-transform: none;
  font-size: 1.2em;
}

.article-next__title .ms-6 {
  margin-left: 3.5rem;
}

@media (max-width: 767.98px) {
  .article-next__title .ms-6 {
    margin-left: 0;
  }
}

.article-next .arrow-text {
  left: -2rem;
  position: absolute;
  top: 5rem;
  pointer-events: none;
}

.article-next .blog__feed-item {
  width: 100% !important;
}

.article-next .blog__feed-item .media-img {
  height: 32rem;
}

@media (max-width: 767.98px) {
  .article-next .blog__feed-item .media-img {
    height: 22rem;
  }
}

/* --------------------------------------------------------------------------
   6. TrueKind Exact Motion & Masking Classes
   -------------------------------------------------------------------------- */
.mask-path-intro,
.mask-path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.masking-text {
  display: block;
  overflow: hidden;
}

.masking-text .line {
  display: inline-block;
  will-change: transform;
}

.hover-arrow {
  transition: transform 0.35s cubic-bezier(0.18, 0.71, 0.11, 1);
}

.hover-arrow:hover {
  transform: scale(1.1) !important;
}

.fade-bottom {
  will-change: transform, opacity;
}

/* --------------------------------------------------------------------------
   7. TrueKind Image Morphing & Expanding Page Transition
   -------------------------------------------------------------------------- */
.clone-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9998;
  pointer-events: none;
  display: none;
  background: transparent !important;
}

.clone-transition.active {
  display: block;
}

.clone-transition-backdrop {
  display: none !important;
}

.clone-transition-box {
  position: fixed;
  z-index: 9999;
  overflow: hidden;
  pointer-events: none;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
  will-change: top, left, width, height, transform;
  transform: translate3d(0, 0, 0);
  background: transparent !important;
}

.clone-transition-box img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 30% !important;
  display: block !important;
}

.article-card.is-expanding {
  cursor: wait;
}

.article-card.is-expanding .media-img img {
  visibility: hidden !important;
}

/* Detail page smooth card lift when coming from image expansion */
.journal-slug.from-transition #article .article__header {
  will-change: transform, opacity;
}

/* Modern View Transition API enhancement where supported */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.5s;
}

