/* Post listing styles for all-post.blade.php */

/* Container spacing */
.main-container.container {
  padding-top: 24px;
  padding-bottom: 32px;
}

/* Title */
.page-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.4;
}

/* Single post */
.single-post__entry-header {
  text-align: center;
  margin-bottom: 16px;
}

.single-post__entry-title {
  margin: 0 0 8px 0;
  font-size: 22px;
  color: #856d47;
}

.single-post__summary {
  margin: 0 auto 8px auto;
  max-width: 900px;
  color: #555;
  font-size: 14px;
  line-height: 1.9;
}

.single-post__date {
  color: #666;
  font-size: 12px;
}

.single-post__cover {
  padding: 12px;
  background: transparent;
  max-width: 900px;
  margin: 8px auto 0 auto;
}

.single-post__cover .entry__img {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  max-height: 360px; /* smaller visual size */
  /*object-fit: cover;*/
}

/* Place date under title aligned to left within a centered container */
.single-post__entry-header .entry__meta-holder {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.single-post__entry-header .entry__meta {
  justify-content: flex-start;
}

/* Article width and text readability */
.entry__article {
  max-width: 900px;
  margin: 16px auto;
  direction: rtl;
  text-align: right;
}

.entry__article p {
  text-align: right;
  line-height: 1.9;
  font-size: 15px;
}

.single-post__date-footer {
  max-width: 900px;
  margin: 8px auto 0 auto;
  text-align: left;
  color: #666;
  font-size: 16px; /* larger date font */
}

/* Comment form */
.single-post__comments {
  max-width: 900px;
  margin: 24px auto 0 auto;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
}

.single-post__comments-title {
  margin: 0 0 12px 0;
  font-size: 18px;
  color: #856d47;
  text-align: right;
}

.comment-form .form-group {
  display: block;
  margin-bottom: 12px;
}

.comment-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #444;
  text-align: right;
}

.comment-input {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  direction: rtl;
}

.comment-submit {
  background: #0aa35a;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
}

/* Card */
.card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Image holder */
.card__img-holder {
  position: relative;
  background: transparent;
  padding: 8px; /* create outer spacing around image */
}

.entry__img-holder {
  position: relative;
}

.thumb-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px; /* rounded image */
  background: #fff; /* white rim like mock */
  border: 1px solid rgba(0,0,0,0.12); /* subtle border around image */
}

/* 70% aspect ratio */
.thumb-container.thumb-70 {
  height: 160px; /* match screenshot */
  padding-top: 0;
}

.thumb-container.thumb-70 img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
}

/* Category label */
.entry__meta-category--label {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  background: #6c5ce7;
  color: #fff !important;
  font-size: 12px;
  line-height: 1;
  padding: 8px 12px;
  text-decoration: none;
}

/* Card body */
.card__body {
  background: #fff;
  text-align: center;
}

/* Title link */
.entry__title {
  margin: 0 0 8px 0;
}

.entry__title a {
  color: #856d47; /* match screenshot green */
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 16px; /* normalized title size */
}

.entry__title a:hover {
  color: #856d47;
}

/* Excerpt */
.entry__excerpt p {
  color: #555;
  margin: 0 0 12px 0;
  text-align: center;
  font-size: 13px; /* normalized excerpt size */
  line-height: 1.8;
}

/* Meta */
.entry__meta {
  display: flex;
  gap: 16px;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.entry__meta li {
  list-style: none;
  color: #666;
  font-size: 12px; /* normalized meta size */
}

.entry__meta a {
  color: #6c5ce7;
  text-decoration: none;
}

/* Grid spacing */
.card-row > [class*="col-"] {
  margin-bottom: 24px;
}

/* Sidebar search */
.news-sidebar {
  position: sticky;
  top: 24px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 10px;
}

.news-sidebar__title {
  margin: 0 0 6px 0;
  font-size: 12px;
  font-weight: 700;
  color: #856d47;
  text-align: right;
}

.news-search__group { margin-bottom: 10px; }

.news-search__input {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 11px;
  direction: rtl;
}

.news-search__btn {
  width: 100%;
  background: #0aa35a;
  color: #fff;
  border: 0;
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: block;
}


/* Responsive tweaks */
@media (max-width: 992px) {
  /* Reduce image height a bit on tablets */
  .thumb-container.thumb-70 { height: 140px; }
  /* Sidebar becomes non-sticky */
  .news-sidebar { position: static; margin-top: 16px; }
  /* Single post max widths */
  .single-post__cover, .entry__article, .single-post__date-footer, .single-post__summary { max-width: 720px; }
}

@media (max-width: 768px) {
  .thumb-container.thumb-70 { height: 130px; }
  .post__overlay-badges { right: 10px; bottom: 10px; gap: 4px; }
  .badge { padding: 3px 8px; font-size: 11px; }
  .page-title { font-size: 24px; }
  .entry__title a { font-size: 15px; }
  .home-news__item { grid-template-columns: 1fr 100px; }
}

@media (max-width: 576px) {
  .thumb-container.thumb-70 { height: 120px; }
  .card { border-radius: 10px; }
  .home-news { padding: 12px; }
  .home-news__thumb { width: 100px; height: 75px; }
  .single-post__entry-title { font-size: 20px; }
  .single-post__cover, .entry__article, .single-post__date-footer, .single-post__summary { max-width: 100%; padding-left: 12px; padding-right: 12px; }
  .single-post__date-footer { font-size: 15px; }
}

/* RTL tweaks (Persian) */
html[dir="rtl"] .entry__meta-category--label {
  right: auto;
  left: 12px;
}

/* Date appearance */
.entry__date {
  display: inline-block;
  color: #444;
  font-size: 12px; /* normalized date size */
  line-height: 1.8;
  letter-spacing: 0.2px;
  direction: rtl;
  unicode-bidi: plaintext;
}

/* Home News widget */
.home-news {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 16px 16px 8px 16px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.04);
}

/* Section spacing (above & below) */
.home-news-section {
  margin-top: 36px;
  margin-bottom: 36px;
}

.home-news__header {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* move badge to right */
  margin-bottom: 8px;
}

.home-news__badge {
  
  width: 100%;
  display: block;
  margin: 0;
  font-family: "Yekan";
  font-size: 25px;
  direction: rtl;
}

.home-news__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-news__item {
  display: grid;
  grid-template-columns: 1fr 120px; /* text | thumb */
  gap: 16px;
  align-items: center;
  padding: 10px 8px;
  border-radius: 10px;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow .2s ease, transform .2s ease;
}

.home-news__item:hover {
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.home-news__thumb {
  width: 120px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
}

.home-news__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-news__title {
  color: #856d47;
  margin: 0 0 6px 0;
  font-size: 16px;
  line-height: 1.6;
}

.home-news__excerpt {
  margin: 0;
  color: #606c76;
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-news__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed rgba(0,0,0,0.1);
  margin-top: 12px;
  padding-top: 10px;
}

.home-news__more {
  color: #856d47;
  text-decoration: none;
  font-weight: 700;
}

.home-news__count {
  color: #777;
  font-size: 12px;
}

/* Post list badges (all-post) */
.post__badges {
  display: flex;
  gap: 8px;
  direction: rtl;
}

/* Overlay badges on image */
.post__overlay-badges {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.badge {
  display: inline-block;
  background: #856d47;
  color: #fff;
  padding: 4px 10px; /* slim bar like screenshot */
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.badge--date {
  background: #856d47;
}

.badge--type {
  background: #856d47;
}

.post__more-wrapper {
  margin-top: 8px;
  text-align: center;
}

.post__more {
  color: #e74c3c;
  text-decoration: none;
  font-size: 12px; /* normalized more link */
}

