body {
  background-color: white !important; 
}

.news-detail-container {
  display: flex;
  flex-direction: column;
  padding: 20px 71px; 
  gap: 20px;

  
  max-width: 1303px; 
  margin-left: auto;
  margin-right: auto;
}


.back-button-container {
  width: 100%;
  padding-bottom: 23px; 
  background: white;
  justify-content: flex-start;
  align-items: flex-start;
  display: inline-flex;
}

.back-button {
  padding: 5px 12px; 
  border-radius: 8px;
  justify-content: flex-start;
  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;
  word-wrap: break-word;
}


.news-content-layout {
  width: 100%;
  background: white; 
  justify-content: flex-start; 
  align-items: flex-start;
  gap: 91px; 
  display: flex; 
}

.news-article-main {
  width: 800px; 
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 62px;
  display: inline-flex; 
  flex-grow: 1; 
}

.news-article-header {
  align-self: stretch;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 35px;
  display: flex;
}

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

.author-info-block {
  width: auto; 
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 23px;
  display: inline-flex;
}

.author-details {
  align-self: stretch;
  justify-content: flex-start;
  align-items: center;
  gap: 11px;
  display: inline-flex;
}

.author-avatar {
  width: 39px;
  height: 39px;
  border-radius: 9999px;
  object-fit: cover;
}

.author-name-time {
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
  display: inline-flex;
}

.author-name {
  color: #191919;
  font-size: 16px;
  font-family: Unbounded, sans-serif;
  font-weight: 400;
  line-height: 16px;
  word-wrap: break-word;
}

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

.article-stats-small {
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px; 
  display: inline-flex;
}

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

.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;
  word-wrap: break-word;
}

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

.rating-text {
  text-align: right;
  color: #a9a9a9;
  font-size: 12px;
  font-family: Unbounded, sans-serif;
  font-weight: 300;
  letter-spacing: 0.12px;
  word-wrap: break-word;
}


.rating-icons {
  
  display: flex;
  align-items: center;
  gap: 5px; 
}

.rating-stars {
  
  display: flex;
  gap: 2px; 
}

.rating-icon-container {
  position: relative;
  display: inline-block;
  width: 20px; 
  height: 14px; 
  cursor: default;
}

.rating-icon-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; 
}

.rating-icon-container .icon-filled {
  opacity: 0; 
  z-index: 2;

  

  
}

.rating-icon-container .icon-empty {
  
  opacity: 1; 
  z-index: 1;

  
  filter: grayscale(100%) opacity(35%); 

  
}





.rating-icon-container.is-filled .icon-filled {
  opacity: 1;
  filter: none; 
}

.rating-icon-container.is-filled .icon-empty {
  opacity: 0;
}


.rating-icon-container.is-empty .icon-filled {
  opacity: 0;
}

.rating-icon-container.is-empty .icon-empty {
  
  opacity: 1; 
  filter: grayscale(100%) opacity(35%); 
}


.rating-icon-container.is-outline .icon-empty {
  opacity: 1;

  

  

  

  

  
}

.rating-icon-container.is-outline .icon-filled {
  opacity: 0;
}

.article-main-image {
  align-self: stretch;
  height: 314px; 
  object-fit: cover;
  border-radius: 28px;
}

.article-title-large {
  align-self: stretch;
  color: black;
  font-size: 35px;
  font-family: Unbounded, sans-serif;
  font-weight: 600;
  line-height: 35px; 
  word-wrap: break-word;
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}

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

.article-content-body {
  align-self: stretch;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
  display: flex;
}

.content-row {
  align-self: stretch;
  justify-content: flex-start; 
  align-items: flex-start;
  gap: 26px;
  display: flex; 
}

.content-image-block {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  display: inline-flex; 
  flex-shrink: 0; 
}

.content-image {
  width: 267px;
  height: 267px;
  object-fit: cover;
  border-radius: 28px;
}

.image-caption {
  color: rgb(0 0 0 / 20%);
  font-size: 12px;
  font-family: Unbounded, sans-serif;
  font-weight: 300;
  letter-spacing: 0.12px;
  word-wrap: break-word;
}

.content-text {
  
  flex-grow: 1; 
  color: black;
  font-size: 14px;
  font-family: Unbounded, sans-serif;
  font-weight: 300;
  line-height: 1.6; 
  word-wrap: break-word;
}

.content-text-full-width {
  
  align-self: stretch;
  color: black;
  font-size: 14px;
  font-family: Unbounded, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  word-wrap: break-word;
}

.content-image-large {
  align-self: stretch;
  height: 314px;
  object-fit: cover;
  border-radius: 28px;
}

.article-footer-stats {
  width: auto; 
  justify-content: flex-start;
  align-items: center;
  gap: 16px; 
  display: inline-flex;
}




.sidebar-similar-articles {
  width: 409px; 
  flex-shrink: 0; 
  flex-direction: column;
  justify-content: flex-start; 
  align-items: flex-start;
  gap: 25px; 
  display: inline-flex; 
}

.sidebar-title {
  
  height: auto; 
  color: black;
  font-size: 35px;
  font-family: Unbounded, sans-serif;
  font-weight: 600;
  line-height: 35px;
  word-wrap: break-word;
  margin-bottom: 20px; 
}

.similar-article-card {
  width: 100%; 

  
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #f9f9f9; 
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 5px rgb(0 0 0 / 5%);
}

.similar-article-image {
  width: 100%;
  height: 214px;
  object-fit: cover;
  border-top-left-radius: 10px; 
  border-top-right-radius: 10px;
}

.similar-article-content {
  padding: 15px; 
  display: flex;
  flex-direction: column;
  gap: 8px; 
  flex-grow: 1; 
}

.similar-article-title {
  color: black;
  font-size: 20px; 
  font-family: Unbounded, sans-serif;
  font-weight: 400; 
  line-height: 1.3; 
  word-wrap: break-word;
  margin-bottom: 5px; 
}

.similar-article-description {
  color: black; 
  font-size: 14px; 
  font-family: Unbounded, sans-serif;
  font-weight: 300; 
  line-height: 1.5; 
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; 
  -webkit-box-orient: vertical;
  height: calc(1.5em * 3); 
}


.ad-label-on-image {
  
  position: absolute;
  top: 10px; 
  right: 10px;
  background-color: rgb(
    0 0 0 / 65%
  ); 
  color: white;
  padding: 5px 10px; 
  border-radius: 5px;
  font-size: 12px; 
  font-family: Unbounded, sans-serif;
  font-weight: 300;
  letter-spacing: 0.12px; 
  display: flex;
  align-items: center;
  gap: 6px; 
  z-index: 10; 
  line-height: 1; 
}

.ad-label-on-image img {
  
  width: 16px; 
  height: 16px;
  filter: brightness(0) invert(1); 
}


.font-unbounded {
  font-family: Unbounded, sans-serif;
}
.font-circe {
  font-family: Circe, sans-serif;
}


.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; 
  font-weight: 400; 
}

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

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

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

.similar-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}


 








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; 

  

  
}





.comments-section {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  font-family: Unbounded, sans-serif;
  margin-top: 30px; 
  margin-bottom: 30px; 
}

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

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

.comments-list-container {
  display: flex;
  align-self: stretch;
  justify-content: space-between; 
}

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

.comment-item {
  display: flex;
  align-self: stretch;
  justify-content: space-between;
  align-items: flex-start; 
  padding-bottom: 15px;
  border-bottom: 1px solid #eee; 
}

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

.comment-content {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 17px;
  flex-grow: 1;
}

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

.comment-text-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px; 
  flex-grow: 1;
}

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

.comment-text {
  color: black;
  font-size: 14px; 
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.12px;
  word-wrap: break-word;
}

.comment-meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 11px;
  min-width: 100px; 
  text-align: right;
}

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

.comments-show-more-btn-container {
  display: flex;
  justify-content: flex-start; 
  margin-top: 10px;
}

.comments-show-more-btn {
  height: 40px;
  padding: 0 25px;
  box-shadow: 0 2px 4px rgb(0 0 0 / 15%);
  border-radius: 10px;
  border: 1px solid #004e9f;
  background-color: transparent;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  display: inline-flex;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease;
}

.comments-show-more-btn:hover {
  background-color: rgb(0 78 159 / 10%);
  box-shadow: 0 3px 6px rgb(0 0 0 / 20%);
}

.comments-show-more-text {
  color: #004e9f;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
}

.comments-show-more-icon svg path {
  fill: #004e9f;
}

.add-comment-form-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px; 
}

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

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

.add-comment-submit-btn {
  height: 40px;
  padding: 0 30px;
  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;
  justify-content: center;
  align-items: center;
  gap: 8px;
  display: inline-flex;
  align-self: flex-start;
  cursor: pointer;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.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;
}

@media (max-width: 1400px) {
  .news-detail-container {
    max-width: 1200px;
  }
}

@media (max-width: 1200px) {
  .news-detail-container {
    max-width: 1000px;
  }
  
  .news-content-layout {
    gap: 30px;
  }
  
  .news-article-main {
    flex: 1;
  }
  
  .sidebar-similar-articles {
    width: 300px;
  }
}

@media (max-width: 992px) {
  .news-detail-container {
    max-width: 900px;
  }
  
  .news-content-layout {
    flex-direction: column;
    gap: 25px;
  }
  
  .sidebar-similar-articles {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .similar-articles-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .article-title-large {
    font-size: 28px;
    line-height: 1.3;
  }
}

@media (max-width: 768px) {
  .news-detail-container {
    padding: 20px 15px;
  }
  
  .back-button-container {
    margin-bottom: 20px;
  }
  
  .back-button {
    padding: 8px 15px;
    font-size: 13px;
  }
  
  .article-title-large {
    font-size: 24px;
    line-height: 1.2;
  }
  
  .author-info-block {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .article-stats-small {
    justify-content: flex-start;
  }
  
  .similar-articles-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .similar-article-card {
    padding: 15px;
  }
  
  .comments-section {
    padding: 20px 15px;
  }
  
  .comment-item {
    padding: 12px 15px;
  }
  
  .add-comment-textarea {
    min-height: 80px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .news-detail-container {
    padding: 15px 10px;
  }
  
  .back-button-container {
    margin-bottom: 15px;
  }
  
  .back-button {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .article-title-large {
    font-size: 20px;
    line-height: 1.2;
  }
  
  .article-main-image {
    height: 200px;
  }
  
  .similar-article-card {
    padding: 12px;
  }
  
  .similar-article-title {
    font-size: 14px;
  }
  
  .similar-article-description {
    font-size: 12px;
  }
  
  .comments-section {
    padding: 15px 10px;
  }
  
  .comment-item {
    padding: 10px 12px;
  }
  
  .comment-author-name {
    font-size: 13px;
  }
  
  .comment-text {
    font-size: 12px;
  }
  
  .add-comment-textarea {
    min-height: 70px;
    font-size: 12px;
    padding: 8px 12px;
  }
  
  .add-comment-submit-btn {
    height: 35px;
    padding: 0 25px;
  }
  
  .add-comment-submit-text {
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .news-detail-container {
    padding: 10px 8px;
  }
  
  .back-button {
    padding: 5px 10px;
    font-size: 11px;
  }
  
  .article-title-large {
    font-size: 18px;
  }
  
  .article-main-image {
    height: 180px;
  }
  
  .similar-article-card {
    padding: 10px;
  }
  
  .similar-article-title {
    font-size: 13px;
  }
  
  .similar-article-description {
    font-size: 11px;
  }
  
  .comments-section {
    padding: 12px 8px;
  }
  
  .comment-item {
    padding: 8px 10px;
  }
  
  .comment-author-name {
    font-size: 12px;
  }
  
  .comment-text {
    font-size: 11px;
  }
  
  .add-comment-textarea {
    min-height: 60px;
    font-size: 11px;
    padding: 6px 10px;
  }
  
  .add-comment-submit-btn {
    height: 32px;
    padding: 0 20px;
  }
  
  .add-comment-submit-text {
    font-size: 12px;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .news-content-layout {
    flex-direction: row;
    gap: 20px;
  }
  
  .sidebar-similar-articles {
    width: 250px;
    max-width: 30%;
  }
  
  .similar-articles-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 600px) {
  .news-detail-container {
    padding: 10px 15px;
  }
  
  .back-button-container {
    margin-bottom: 10px;
  }
  
  .article-main-image {
    height: 150px;
  }
}
