/* ==========================================================================
   news_detail.css — News detail page
   --------------------------------------------------------------------------
      Contents: Page shell • Header/back link • Hero/media • Body typography • Share bar • Related grid • Responsive
   Notes: Includes an absolutely-positioned decorative monster in the hero.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page shell
   -------------------------------------------------------------------------- */

.news-detail-page {
  background: #ffffff;
  padding: 40px 0 60px 0;
  overflow-x: hidden;
}

.news-detail-container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}


/* --------------------------------------------------------------------------
   Back navigation
   -------------------------------------------------------------------------- */

.news-detail-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #404040;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 10px 14px;
  margin: 10px 0 8px 0;
}

.news-detail-back:hover {
  text-decoration: none;
}


/* --------------------------------------------------------------------------
   Title / intro
   -------------------------------------------------------------------------- */

.news-detail-title {
  font-family: "Fredoka One", "Fredoka", sans-serif;
  font-weight: 400;
  color: #ff2d55;
  font-size: clamp(28px, 3vw, 47px);
  line-height: 1.21;
  margin: 20px 0 10px 0;
}

.news-detail-description {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: #404040;
  font-size: 19px;
  line-height: 23px;
  margin: 0 0 15px 0;

  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}


/* --------------------------------------------------------------------------
   Meta / stats row
   -------------------------------------------------------------------------- */

.news-detail-stats {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.news-detail-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #999999;
  font-family: "Inter", sans-serif;
  font-size: 14px;
}

.news-detail-stat img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}


/* --------------------------------------------------------------------------
   Hero image + decoration
   -------------------------------------------------------------------------- */

.news-detail-hero {
  position: relative;
  width: 100%;
  margin: 20px 0 30px 0;
  overflow: visible;
}

.news-detail-hero-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: clamp(220px, 28vw, 700px);
  object-fit: cover;
  border-radius: 25px;
  display: block;
}

.news-detail-hero-monster {
  position: absolute;
  right: -155px;
  top: -60px;
  width: 300px;
  height: auto;
  z-index: 1;
  pointer-events: none;
}


/* --------------------------------------------------------------------------
   Article body
   -------------------------------------------------------------------------- */

.news-detail-body {
  margin-top: 10px;
}

.news-detail-section {
  margin-bottom: 18px;
}

.news-detail-subtitle {
  font-family: "Fredoka One", "Fredoka", sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 34px;
  color: #000000;
  margin: 0 0 10px 0;
}

.news-detail-text {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #404040;
  margin: 0 0 12px 0;

  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}


/* --------------------------------------------------------------------------
   Share bar
   -------------------------------------------------------------------------- */

.news-detail-share {
  display: flex;
  justify-content: space-between;
  align-items: center;

  border-top: 2px solid rgba(0, 0, 0, 0.18);
  border-bottom: 2px solid rgba(0, 0, 0, 0.18);
  padding: 18px 0;
  margin-top: 22px;
  gap: 16px;
}

.news-detail-share-title {
  color: #ff2d55;
  font-family: "Fredoka One", "Fredoka", sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 29px;
}

.news-detail-share-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.news-detail-share-icons a {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.news-detail-share-icons img.social-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}


/* --------------------------------------------------------------------------
   Related content grid
   -------------------------------------------------------------------------- */

.news-detail-related {
  margin-top: 26px;
}

.news-detail-related-title {
  color: #ff2d55;
  font-family: "Fredoka One", "Fredoka", sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 29px;
  margin: 0 0 22px 0;
}

.news-detail-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.news-related-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.news-related-card-image {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
}

.news-related-card-image img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

.news-related-card-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  color: #999999;
  font-family: "Inter", sans-serif;
  font-size: 12px;
}

.news-related-card-stat {
  display: flex;
  gap: 6px;
  align-items: center;
}

.news-related-card-stat img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.news-related-card-title {
  font-family: "Fredoka One", "Fredoka", sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 29px;
  color: #404040;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}


/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

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

@media (max-width: 820px) {
  .news-detail-related-grid {
    grid-template-columns: 1fr;
  }

  .news-detail-hero-monster {
    right: -10px;
    top: -20px;
    width: 160px;
  }

  .news-detail-share {
    flex-direction: column;
    align-items: flex-start;
  }
}