.theme-blog-page {
  --theme-blog-border: #d7e1ec;
  --theme-blog-surface: #ffffff;
  --theme-blog-muted: #5c6f82;
  --theme-blog-title: #0f2438;
  --theme-blog-link: #2d587e;
  --theme-blog-link-hover: #1f3f5d;
  --theme-blog-active-bg: #f2f5f8;
  margin: 1.2rem 0 2.5rem;
}

.theme-blog-page-title {
  --lq-page-title-padding-top: 36px;
  --lq-page-title-padding-bottom: 26px;
}

.theme-blog-page__intro {
  max-width: 72ch;
  color: var(--theme-blog-muted);
  margin: 0 0 1.1rem;
}

.theme-blog-page__intro > :first-child {
  margin-top: 0;
}

.theme-blog-page__intro > :last-child {
  margin-bottom: 0;
}

.theme-blog-page__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.2rem;
}

.theme-blog-page__filter {
  display: inline-block;
  border: 1px solid var(--theme-blog-border);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  color: var(--theme-blog-link);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.2;
}

.theme-blog-page__filter:hover,
.theme-blog-page__filter:focus {
  border-color: var(--theme-blog-link);
  color: var(--theme-blog-link-hover);
}

.theme-blog-page__filter.is-active {
  background: var(--theme-blog-active-bg);
  color: var(--theme-blog-title);
  border-color: #c8d4df;
}

.theme-blog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.theme-blog-card {
  border: 1px solid var(--theme-blog-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--theme-blog-surface);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.theme-blog-card__media-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.theme-blog-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: block;
  background: #f4f7fb;
}

.theme-blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.theme-blog-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6f8194;
  font-size: 0.9rem;
  background: #f4f7fb;
}

.theme-blog-card__content {
  padding: 0.9rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  flex: 1 1 auto;
}

.theme-blog-card__title {
  margin: 0;
  color: var(--theme-blog-title);
  font-size: 1.16rem;
  line-height: 1.3;
}

.theme-blog-card__title a {
  color: inherit;
  text-decoration: none;
}

.theme-blog-card__title a:hover,
.theme-blog-card__title a:focus {
  color: var(--theme-blog-link-hover);
}

.theme-blog-card__meta {
  color: var(--theme-blog-muted);
  font-size: 0.84rem;
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.theme-blog-card__meta a {
  color: var(--theme-blog-link);
  text-decoration: none;
}

.theme-blog-card__meta a:hover,
.theme-blog-card__meta a:focus {
  color: var(--theme-blog-link-hover);
  text-decoration: underline;
}

.theme-blog-card__excerpt {
  margin: 0;
  color: #2f3f4f;
  line-height: 1.5;
  flex: 1 1 auto;
}

.theme-blog-card__read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border: 1px solid #b9c8d6;
  border-radius: 6px;
  padding: 0.44rem 0.78rem;
  text-decoration: none;
  color: var(--theme-blog-link);
  font-weight: 600;
  font-size: 0.9rem;
}

.theme-blog-card__read-more:hover,
.theme-blog-card__read-more:focus {
  border-color: var(--theme-blog-link);
  color: var(--theme-blog-link-hover);
}

.theme-blog-page__pagination {
  margin-top: 1.5rem;
}

.theme-blog-page__empty {
  margin: 0;
  color: var(--theme-blog-muted);
}

.theme-blog-page__pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 0.38rem;
  margin: 0;
  padding: 0;
}

.theme-blog-page__pagination .page-numbers a,
.theme-blog-page__pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  height: 2.15rem;
  border: 1px solid var(--theme-blog-border);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  text-decoration: none;
  color: var(--theme-blog-link);
  font-size: 0.9rem;
}

.theme-blog-page__pagination .page-numbers .current {
  background: var(--theme-blog-active-bg);
  color: var(--theme-blog-title);
  border-color: #c8d4df;
}

@media (min-width: 700px) {
  .theme-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .theme-blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.theme-blog-page--avicenna-child {
  --theme-blog-border: rgba(29, 81, 70, 0.1);
  --theme-blog-muted: rgba(22, 50, 56, 0.78);
  --theme-blog-title: #00333d;
  --theme-blog-link: #208542;
  --theme-blog-link-hover: #1f8637;
  --theme-blog-active-bg: #edf6f0;
}

.theme-blog-page--avicenna-child .theme-blog-card {
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(8, 52, 45, 0.1);
}

.theme-blog-page--avicenna-child .theme-blog-card__image {
  aspect-ratio: 16 / 9.5;
  background: linear-gradient(135deg, #dcebe6, #eef6f3);
}

.theme-blog-page--avicenna-child .theme-blog-card__content {
  padding: 1.35rem;
}

.theme-blog-page--avicenna-child .theme-blog-card__read-more {
  border: 0;
  padding: 0;
  color: #00333d;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}

.theme-blog-single--avicenna-child {
  max-width: 980px;
  margin: 2.5rem auto 4rem;
}

.wrapper-main--ec-blog-single {
  max-width: none;
  padding-inline: 0;
}

.lq-custom-blog-single .theme-blog-single__featured-content {
  width: 100%;
}

body.lq-custom-blog-single {
  background-color: #f6f5f5;
}

.lq-custom-blog-single .theme-blog-single__featured-content .vc_row {
  margin-inline: 0;
}

.lq-custom-blog-single .theme-blog-single__featured-content .row-hero-slider {
  position: relative;
  z-index: 0;
}

.lq-custom-blog-single .theme-blog-single__featured-content .row-hero-slider .vc_column-inner {
  padding-top: 0;
}

.lq-custom-blog-single .theme-blog-single__content {
  padding-inline: 1rem;
}

@media (min-width: 1024px) {
  .lq-custom-blog-single .theme-blog-single__related-posts {
    width: min(100% - 4rem, 1200px);
    margin: 3rem auto 4rem;
  }

  .lq-custom-blog-single .theme-blog-single__related-posts .vc_row {
    margin-inline: 0;
  }
}

.theme-blog-single__hero {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  border-radius: 28px;
  display: flex;
  align-items: end;
  background: #00333d;
  color: #fff;
}

.theme-blog-single__image,
.theme-blog-single__image::after {
  position: absolute;
  inset: 0;
}

.theme-blog-single__image::after {
  content: '';
  background: linear-gradient(180deg, rgba(0, 51, 61, 0.08), rgba(0, 51, 61, 0.88));
}

.theme-blog-single__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-blog-single__heading {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 5vw, 4rem);
}

.theme-blog-single__heading .entry-title {
  margin: 0;
  color: inherit;
}

.theme-blog-single__date {
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.theme-blog-single__content {
  max-width: 760px;
  margin: 2.5rem auto 0;
}
