body {
  background-color: white !important;
}

/* ── Container ── */
.news-detail-container {
  display: flex;
  flex-direction: column;
  padding: 20px 71px;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* ── Back button ── */
.back-button-container {
  width: 100%;
  padding-bottom: 10px;
  display: flex;
}

.back-button {
  padding: 5px 12px;
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  display: flex;
  cursor: pointer;
  text-decoration: none;
}

.back-button-arrow {
  width: 16px;
  height: 16px;
  position: relative;
  overflow: hidden;
}

.back-button-arrow-inner {
  width: 9.33px;
  height: 9.33px;
  left: 3.33px;
  top: 3.33px;
  position: absolute;
  border-left: 1.6px black solid;
  border-bottom: 1.6px black solid;
  transform: rotate(45deg);
}

.back-button-text {
  color: black;
  font-size: 12px;
  font-family: Unbounded, sans-serif;
  font-weight: 300;
  letter-spacing: 0.12px;
}

/* ── Article (full width, no sidebar) ── */
.news-article-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.news-article-header {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.article-meta-rating-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.author-info-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.author-details {
  display: flex;
  align-items: center;
  gap: 11px;
}

.author-name-time {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.publish-time {
  color: rgb(0 0 0 / 30%);
  font-size: 13px;
  font-family: Unbounded, sans-serif;
  font-weight: 300;
  letter-spacing: 0.12px;
}

.article-stats-small {
  display: flex;
  gap: 16px;
  align-items: center;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon img {
  max-width: 100%;
  max-height: 100%;
}

.stat-text {
  color: black;
  font-size: 14px;
  font-family: Circe, sans-serif;
  font-weight: 400;
  line-height: 18px;
}

.rating-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.category-badge {
  background: #004E9F;
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-family: Unbounded, sans-serif;
  font-weight: 400;
}

/* ── Article image (only shown if exists) ── */
.article-main-image {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 16px;
}

/* ── Title + actions ── */
.article-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.article-title-large {
  color: black;
  font-size: 32px;
  font-family: Unbounded, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  flex: 1;
}

.article-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
  padding-top: 6px;
}

.edit-news-btn {
  font-size: 14px;
  color: #004E9F;
  text-decoration: none;
  font-family: Circe, sans-serif;
  white-space: nowrap;
}

.edit-news-btn:hover {
  text-decoration: underline;
}

.delete-news-btn {
  background: #ff6161;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 5px;
  cursor: pointer;
  font-family: Circe, sans-serif;
  font-size: 13px;
  white-space: nowrap;
}

/* ── Content body ── */
.article-content-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-text-full-width {
  color: #1a1a1a;
  font-size: 16px;
  font-family: Unbounded, sans-serif;
  font-weight: 300;
  line-height: 1.75;
  word-wrap: break-word;
}

.content-text-full-width h2,
.content-text-full-width h3 {
  font-weight: 500;
  margin: 1.5em 0 0.5em;
  line-height: 1.3;
}

.content-text-full-width p {
  margin: 0 0 1em;
}

.content-text-full-width ul,
.content-text-full-width ol {
  padding-left: 1.5em;
  margin: 0 0 1em;
}

/* ── Footer stats ── */
.article-footer-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

/* ── Like button ── */
.like-button {
  background: none;
  border: none;
  font-size: 16px;
  color: #7b61ff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-family: Circe, sans-serif;
}

.like-button.liked .fa-heart {
  color: #ff6161;
}

.like-button .fa-heart {
  font-size: 20px;
}

.like-count {
  color: black;
  font-size: 14px;
}

/* ── Comments ── */
.comments-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 25px;
  font-family: Unbounded, sans-serif;
}

.comments-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.comments-title {
  color: black;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.comments-list-container {
  display: flex;
  width: 100%;
}

.comments-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
  flex-wrap: wrap;
  gap: 10px;
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-content {
  display: flex;
  gap: 14px;
  flex-grow: 1;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-text-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.comment-author-name {
  color: black;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.comment-text {
  color: #333;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.12px;
}

.comment-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 90px;
  text-align: right;
}

.comment-date {
  color: rgb(0 0 0 / 35%);
  font-size: 12px;
  font-weight: 300;
}

.reply-btn,
.delete-comment-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: Unbounded, sans-serif;
  font-size: 12px;
  font-weight: 400;
  padding: 0;
}

.reply-btn {
  color: #004E9F;
}

.delete-comment-btn {
  color: #ff6161;
}

.no-comments {
  color: #999;
  font-size: 14px;
  font-weight: 300;
  padding: 20px 0;
}

.comment-replies {
  width: 100%;
  padding-left: 50px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.reply-form-container {
  width: 100%;
  padding-left: 50px;
  margin-top: 10px;
}

.add-comment-form-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.add-comment-textarea {
  width: 100%;
  min-height: 90px;
  background: white;
  border-radius: 10px;
  border: 1px #d0d0d0 solid;
  padding: 12px 16px;
  font-family: Unbounded, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: black;
  resize: vertical;
}

.add-comment-textarea::placeholder {
  color: #b0b0b0;
}

.add-comment-submit-btn {
  height: 40px;
  padding: 0 28px;
  background: linear-gradient(0deg, #004e9f 0%, #006edf 100%) !important;
  box-shadow: 0 2px 4px rgb(0 0 0 / 15%);
  border-radius: 10px;
  border: none !important;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  align-self: flex-start;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
}

.add-comment-submit-btn:hover {
  background: linear-gradient(0deg, #003d7a 0%, #005abf 100%) !important;
  box-shadow: 0 3px 6px rgb(0 0 0 / 20%);
}

.add-comment-submit-text {
  color: #f5f5f5 !important;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
}

/* ── Similar articles — horizontal row at bottom ── */
.similar-section {
  margin-top: 20px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.similar-section-title {
  color: black;
  font-size: 24px;
  font-family: Unbounded, sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 24px;
}

.similar-articles-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.similar-card {
  display: flex;
  flex-direction: column;
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

.similar-card:hover {
  box-shadow: 0 4px 16px rgb(0 0 0 / 10%);
  transform: translateY(-2px);
}

.similar-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.similar-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.similar-card-title {
  color: black;
  font-size: 15px;
  font-family: Unbounded, sans-serif;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.similar-card-excerpt {
  color: #555;
  font-size: 13px;
  font-family: Unbounded, sans-serif;
  font-weight: 300;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.similar-card-date {
  color: rgb(0 0 0 / 30%);
  font-size: 12px;
  font-family: Unbounded, sans-serif;
  font-weight: 300;
  margin-top: auto;
}

.similar-load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.similar-load-more-btn {
  height: 42px;
  padding: 0 32px;
  background: transparent;
  border: 1.5px solid #004e9f;
  border-radius: 10px;
  color: #004e9f;
  font-size: 14px;
  font-family: Unbounded, sans-serif;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.similar-load-more-btn:hover {
  background: #004e9f;
  color: white;
}

.similar-load-more-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ── Full-width overrides ── */
main.content:has(.page-content-wrapper-white) {
  background-color: white !important;
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  box-sizing: border-box;
}

.page-content-wrapper-white {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 20px 0;
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .news-detail-container {
    padding: 20px 30px;
    max-width: 100%;
  }

  .article-title-large {
    font-size: 26px;
  }

  .similar-articles-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-detail-container {
    padding: 16px 16px;
  }

  .article-title-large {
    font-size: 22px;
  }

  .article-title-row {
    flex-direction: column;
    gap: 12px;
  }

  .article-main-image {
    max-height: 280px;
    border-radius: 12px;
  }

  .content-text-full-width {
    font-size: 15px;
  }

  .similar-articles-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .comments-title {
    font-size: 20px;
  }

  .comment-replies {
    padding-left: 30px;
  }

  .reply-form-container {
    padding-left: 30px;
  }
}

@media (max-width: 480px) {
  .news-detail-container {
    padding: 12px 12px;
  }

  .article-title-large {
    font-size: 20px;
  }

  .article-main-image {
    max-height: 220px;
    border-radius: 10px;
  }

  .content-text-full-width {
    font-size: 14px;
    line-height: 1.65;
  }

  .comment-avatar {
    width: 30px;
    height: 30px;
  }

  .comment-author-name {
    font-size: 13px;
  }

  .comment-text {
    font-size: 13px;
  }

  .similar-section-title {
    font-size: 20px;
  }

  .similar-card-title {
    font-size: 14px;
  }

  .add-comment-textarea {
    min-height: 70px;
    font-size: 13px;
  }
}
