/* 1mag magazine readability — scoped; no global body text color overrides */
/* ColorMag Pro sets html { font-size: 10px }, so use px (not rem) for readable sizes. */

/* —— Base: kill Pro 9px titles/excerpts —— */
#cm-primary .cm-featured-posts .cm-entry-title a,
#secondary .cm-featured-posts .cm-entry-title a,
.cm-primary .cm-featured-posts .cm-entry-title a,
.cm-secondary .cm-featured-posts .cm-entry-title a {
  font-size: 17px !important;
  line-height: 1.55 !important;
  font-weight: 700 !important;
  max-height: none !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  white-space: normal !important;
}

#cm-primary .cm-featured-posts .cm-entry-summary,
#cm-primary .cm-featured-posts .cm-entry-summary p,
#cm-primary .cm-featured-posts .cm-post-content > p,
#secondary .cm-featured-posts .cm-entry-summary,
#secondary .cm-featured-posts .cm-entry-summary p,
#secondary .cm-featured-posts .cm-post-content > p,
.cm-primary .cm-featured-posts .cm-entry-summary,
.cm-primary .cm-featured-posts .cm-entry-summary p,
.cm-secondary .cm-featured-posts .cm-entry-summary,
.cm-secondary .cm-featured-posts .cm-entry-summary p {
  font-size: 14px !important;
  line-height: 1.7 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  max-height: none !important;
}

#cm-primary .cm-featured-posts .cm-entry-meta,
#cm-primary .cm-featured-posts .cm-entry-meta a,
#secondary .cm-featured-posts .cm-entry-meta,
#secondary .cm-featured-posts .cm-entry-meta a,
.cm-primary .cm-featured-posts .cm-entry-meta,
.cm-secondary .cm-featured-posts .cm-entry-meta {
  font-size: 13px !important;
  line-height: 1.4 !important;
}

/* —— آخرین اخبار (sidebar Style2) —— */
#secondary .cm-featured-posts--style-2 .cm-widget-title span,
.cm-secondary .cm-featured-posts--style-2 .cm-widget-title span {
  font-size: 16px !important;
  font-weight: 700 !important;
}

#secondary .cm-featured-posts--style-2 .cm-entry-title a,
.cm-secondary .cm-featured-posts--style-2 .cm-entry-title a {
  font-size: 17px !important;
  line-height: 1.55 !important;
  -webkit-line-clamp: 3;
  max-height: none !important;
}

#secondary .cm-featured-posts--style-2 .cm-posts .cm-post,
.cm-secondary .cm-featured-posts--style-2 .cm-posts .cm-post {
  margin-bottom: 16px !important;
  padding-bottom: 6px;
}

#secondary .cm-featured-posts--style-2 .cm-posts .cm-post:first-child .cm-entry-title a,
.cm-secondary .cm-featured-posts--style-2 .cm-posts .cm-post:first-child .cm-entry-title a {
  font-size: 19px !important;
  line-height: 1.5 !important;
  -webkit-line-clamp: 3;
}

#secondary .cm-featured-posts--style-2 .cm-entry-summary,
#secondary .cm-featured-posts--style-2 .cm-entry-summary p,
.cm-secondary .cm-featured-posts--style-2 .cm-entry-summary,
.cm-secondary .cm-featured-posts--style-2 .cm-entry-summary p {
  font-size: 14px !important;
  line-height: 1.65 !important;
  -webkit-line-clamp: 3;
}

#secondary .cm-featured-posts--style-2 .cm-featured-image img,
.cm-secondary .cm-featured-posts--style-2 .cm-featured-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* —— Style1 (شامل جامعه): تیتر کامل + excerpt خوانا —— */
#cm-primary .cm-featured-posts--style-1 .cm-posts .cm-post:first-child .cm-entry-title a,
.cm-primary .cm-featured-posts--style-1 .cm-posts .cm-post:first-child .cm-entry-title a {
  font-size: 21px !important;
  line-height: 1.5 !important;
  -webkit-line-clamp: 3;
  max-height: none !important;
}

#cm-primary .cm-featured-posts--style-1 .cm-posts .cm-post:not(:first-child) .cm-entry-title a,
.cm-primary .cm-featured-posts--style-1 .cm-posts .cm-post:not(:first-child) .cm-entry-title a {
  font-size: 16px !important;
  line-height: 1.55 !important;
  -webkit-line-clamp: 3;
  max-height: none !important;
}

#cm-primary .cm-featured-posts--style-1 .cm-entry-summary,
#cm-primary .cm-featured-posts--style-1 .cm-entry-summary p,
#cm-primary .cm-featured-posts--style-1 .cm-post-content > p,
.cm-primary .cm-featured-posts--style-1 .cm-entry-summary,
.cm-primary .cm-featured-posts--style-1 .cm-entry-summary p {
  font-size: 14px !important;
  line-height: 1.7 !important;
  -webkit-line-clamp: 3;
  max-height: none !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#cm-primary .cm-featured-posts--style-1 .cm-posts .cm-post:first-child .cm-featured-image img,
.cm-primary .cm-featured-posts--style-1 .cm-posts .cm-post:first-child .cm-featured-image img {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

#cm-primary .cm-featured-posts--style-1 .cm-posts .cm-post,
.cm-primary .cm-featured-posts--style-1 .cm-posts .cm-post {
  margin-bottom: 18px !important;
}

#cm-primary .cm-featured-posts--style-1 .cm-widget-title span,
.cm-primary .cm-featured-posts--style-1 .cm-widget-title span {
  font-size: 16px !important;
  font-weight: 700 !important;
}

/* Mid-column Style1 (جامعه اغلب اینجاست) — فضای متن بیشتر */
.cm-column-half .cm-featured-posts--style-1 .cm-entry-title a {
  font-size: 17px !important;
  line-height: 1.55 !important;
  -webkit-line-clamp: 3 !important;
  max-height: none !important;
}
.cm-column-half .cm-featured-posts--style-1 .cm-posts .cm-post:first-child .cm-entry-title a {
  font-size: 20px !important;
  line-height: 1.5 !important;
}
.cm-column-half .cm-featured-posts--style-1 .cm-entry-summary,
.cm-column-half .cm-featured-posts--style-1 .cm-entry-summary p {
  font-size: 14px !important;
  line-height: 1.7 !important;
  -webkit-line-clamp: 3 !important;
}
