/**
 * SHB iThanks - Bài viết chi tiết (Figma 250-822)
 * Title, intro, ảnh bài viết (không hero), body (số + bullet), share, Tin liên quan.
 * Màu và spacing theo common.
 */

/* ===== Bài viết chi tiết ===== */
.ithanks-main .ithanks-article {
  padding-top: 3rem;
  padding-bottom: 4.75rem;
}

.ithanks-article__title {
  font-weight: 700;
  color: var(--ithanks-se-100);
  margin-bottom: 0;
  width: 90%;
  padding-bottom: 2rem;
  line-height: 1.3;
}

/* Ảnh bài viết (Figma 330-3039: height khoảng 400px) */
.ithanks-article__img {
  width: 100%;
  height: 600px;
  display: block;
  border-radius: var(--ithanks-radius-lg);
  object-fit: cover;
  margin: 1.5rem 0 2rem;
}

/* Body: intro + đoạn + danh sách */
.ithanks-article__body {
  line-height: 1.7;
  color: var(--ithanks-text-figma);
  margin-bottom: 3rem;
}

.ithanks-article__intro {
  font-size: 1rem;
  color: var(--ithanks-text-secondary);
  margin-bottom: 1.5rem;
}

.ithanks-article__body p {
  margin-bottom: 1rem;
}

.ithanks-article__body p:last-child {
  margin-bottom: 0;
}

.ithanks-article__list {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.ithanks-article__list > li {
  margin-bottom: 1.25rem;
}

.ithanks-article__list > li:last-child {
  margin-bottom: 0;
}

.ithanks-article__list strong {
  display: inline;
}

.ithanks-article__list ul {
  margin: 0.5rem 0 0 1rem;
  padding-left: 1rem;
}

.ithanks-article__list ul li {
  margin-bottom: 0.5rem;
  color: var(--ithanks-text-figma);
}

/* Chia sẻ bài viết – Figma 250-822 */
.ithanks-article__share-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  margin-bottom: 0;
}

.ithanks-article__share-label {
  font-size: 0.875rem;
  color: var(--ithanks-text-muted);
}

.ithanks-article__share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ithanks-se-11);
  color: var(--ithanks-se-100);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.ithanks-article__share-btn:hover {
  background: var(--ithanks-pr-100);
  color: var(--ithanks-white);
  text-decoration: none;
}

.ithanks-article__share-icon {
  line-height: 1;
}

/* ===== Tin liên quan (3 thẻ, Figma 250-822) ===== */
.ithanks-article__related {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ithanks-se-40);
}

.ithanks-article__related-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ithanks-article__related-share .ithanks-article__share-label {
  font-size: 0.875rem;
  color: var(--ithanks-text-muted);
}

.ithanks-article__related .ithanks-section__title--story {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ithanks-se-100);
  text-align: center;
  margin-bottom: 2rem;
}

.ithanks-article__related .ithanks-section__title--story::after {
  display: none;
}

.ithanks-article__related .row {
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.ithanks-article__related .row > [class*="col-"] {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.ithanks-article__related .ithanks-card--story {
  background: var(--ithanks-white);
  overflow: visible;
  height: 100%;
}

.ithanks-article__related .ithanks-card--story .ithanks-card__link {
  height: 100%;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.ithanks-article__related .ithanks-card--story .ithanks-card__link:hover {
  color: inherit;
  text-decoration: none;
}

.ithanks-article__related .ithanks-card--story .ithanks-card__img {
  width: 100%;
  height: 15.625rem;
  border-radius: var(--ithanks-radius-lg);
  background-size: cover;
  background-position: center;
}

.ithanks-article__related .ithanks-card--story .ithanks-card__body {
  padding: 1rem 0 0;
  flex: 1;
  min-width: 0;
}

.ithanks-article__related .ithanks-card--story .ithanks-card__text {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ithanks-text-figma);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Responsive: tablet & mobile ===== */
@media (max-width: 991.98px) {
  .ithanks-main .ithanks-article {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }
  .ithanks-article__title {
    width: 100%;
    font-size: 2.5rem;
    padding-bottom: 1.75rem;
  }
  .ithanks-article__img {
    height: 400px;
    margin: 1rem 0 1.5rem;
  }
  .ithanks-article__body {
    margin-bottom: 2.5rem;
  }
  .ithanks-article__intro {
    font-size: 0.9375rem;
  }
  .ithanks-article__list {
    margin: 1.25rem 0;
    padding-left: 1.25rem;
  }
  .ithanks-article__list > li {
    margin-bottom: 1rem;
  }
  .ithanks-article__share-block {
    margin-top: 1.5rem;
  }
  .ithanks-article__related {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }
  .ithanks-article__related .ithanks-section__title--story {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  .ithanks-article__related .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  .ithanks-article__related .row > [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .ithanks-article__related .ithanks-card--story .ithanks-card__img {
    height: 14rem;
  }
  .ithanks-article__related .ithanks-card--story .ithanks-card__text {
    font-size: 1.125rem;
  }
}

@media (max-width: 767.98px) {
  .ithanks-main .ithanks-article {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }
  .ithanks-article__title {
    font-size: 2rem;
    padding-bottom: 1.5rem;
  }
  .ithanks-article__img {
    height: 320px;
    margin: 0.875rem 0 1.25rem;
  }
  .ithanks-article__body {
    margin-bottom: 2rem;
  }
  .ithanks-article__intro {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
  }
  .ithanks-article__list {
    margin: 1rem 0;
    padding-left: 1rem;
  }
  .ithanks-article__list > li {
    margin-bottom: 0.875rem;
    font-size: 0.9375rem;
  }
  .ithanks-article__list ul {
    margin: 0.5rem 0 0 0.875rem;
    padding-left: 0.875rem;
  }
  .ithanks-article__list ul li {
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
  }
  .ithanks-article__share-block {
    margin-top: 1.25rem;
    gap: 0.625rem;
  }
  .ithanks-article__share-label {
    font-size: 0.8125rem;
  }
  .ithanks-article__share-btn {
    width: 32px;
    height: 32px;
    font-size: 0.6875rem;
  }
  .ithanks-article__related {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
  }
  .ithanks-article__related .ithanks-section__title--story {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }
  .ithanks-article__related .row {
    margin-left: 0;
    margin-right: 0;
  }
  .ithanks-article__related .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 1rem;
  }
  .ithanks-article__related .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
  .ithanks-article__related .ithanks-card--story .ithanks-card__img {
    height: 13rem;
  }
  .ithanks-article__related .ithanks-card--story .ithanks-card__text {
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .ithanks-main .ithanks-article {
    padding-top: 1rem;
    padding-bottom: 2rem;
  }
  .ithanks-article__title {
    width: 100%;
    padding-bottom: 1.25rem;
    font-size: 1.75rem;
  }
  .ithanks-article__img {
    height: 280px;
    margin: 0.75rem 0 1rem;
    border-radius: var(--ithanks-radius);
  }
  .ithanks-article__body {
    margin-bottom: 1.5rem;
  }
  .ithanks-article__intro {
    font-size: 0.8125rem;
    margin-bottom: 1rem;
  }
  .ithanks-article__body p {
    font-size: 0.875rem;
    margin-bottom: 0.875rem;
  }
  .ithanks-article__list {
    margin: 0.875rem 0;
    padding-left: 0.875rem;
  }
  .ithanks-article__list > li {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
  }
  .ithanks-article__list strong {
    font-size: 0.875rem;
  }
  .ithanks-article__list ul {
    margin: 0.375rem 0 0 0.75rem;
    padding-left: 0.75rem;
  }
  .ithanks-article__list ul li {
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
  }
  .ithanks-article__share-block {
    margin-top: 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .ithanks-article__share-label {
    font-size: 0.75rem;
    width: 100%;
  }
  .ithanks-article__share-btn {
    width: 30px;
    height: 30px;
    font-size: 0.625rem;
  }
  .ithanks-article__related {
    margin-top: 1rem;
    padding-top: 1rem;
  }
  .ithanks-article__related .ithanks-section__title--story {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  .ithanks-article__related .ithanks-card--story .ithanks-card__img {
    height: 12rem;
  }
  .ithanks-article__related .ithanks-card--story .ithanks-card__body {
    padding-top: 0.75rem;
  }
  .ithanks-article__related .ithanks-card--story .ithanks-card__text {
    font-size: 0.9375rem;
  }
}
