/* ICV Blog listing + detail pages */
.icv-blog-page {
  --icv-blog-primary: #2f6bff;
  --icv-blog-accent: #c8102e;
  --icv-blog-dark: #0b1b33;
  --icv-blog-muted: #6b7280;
  --icv-blog-border: #e5e7eb;
  --icv-blog-shadow: 0 8px 24px rgba(11, 27, 51, 0.06);

  padding: 60px 0 80px;
  background: #fff;
}

.icv-blog-page__intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.icv-blog-page__intro-title {
  margin: 0 0 12px;
  color: var(--icv-blog-dark);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
}

.icv-blog-page__intro-text {
  margin: 0;
  color: var(--icv-blog-muted);
  font-size: 16px;
  line-height: 1.7;
}

.icv-blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.icv-blog-filters__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--icv-blog-border);
  border-radius: 999px;
  color: var(--icv-blog-dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.icv-blog-filters__btn:hover,
.icv-blog-filters__btn.is-active {
  background: var(--icv-blog-primary);
  border-color: var(--icv-blog-primary);
  color: #fff;
  text-decoration: none;
}

.icv-blog-filters__count {
  display: inline-block;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 11px;
  text-align: center;
}

.icv-blog-filters__btn.is-active .icv-blog-filters__count,
.icv-blog-filters__btn:hover .icv-blog-filters__count {
  background: rgba(255, 255, 255, 0.22);
}

.icv-blog-page .icv-blog-section__grid {
  margin-bottom: 20px;
}

.icv-blog-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--icv-blog-muted);
}

/* Detail layout */
.icv-blog-detail {
  --icv-blog-primary: #2f6bff;
  --icv-blog-accent: #c8102e;
  --icv-blog-dark: #0b1b33;
  --icv-blog-muted: #6b7280;
  --icv-blog-border: #e5e7eb;
  --icv-blog-shadow: 0 8px 24px rgba(11, 27, 51, 0.06);

  padding: 50px 0 80px;
  background: #fff;
}

.icv-blog-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 40px;
  align-items: start;
}

.icv-blog-detail__featured {
  margin-bottom: 22px;
  border-radius: 8px;
  overflow: hidden;
  background: #eef2f7;
  aspect-ratio: 1200 / 628;
}

.icv-blog-detail__featured img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.icv-blog-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 14px;
  color: var(--icv-blog-muted);
  font-size: 14px;
  font-weight: 600;
}

.icv-blog-detail__meta .fa {
  margin-right: 6px;
}

.icv-blog-detail__title {
  margin: 0 0 18px;
  color: var(--icv-blog-dark);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  text-transform: none;
}

.icv-blog-detail__content {
  color: #334155;
  font-size: 16px;
  line-height: 1.8;
}

.icv-blog-detail__content > :is(h1, h2, h3, h4, h5, h6):first-child {
  margin-top: 0;
}

.icv-blog-detail__content h1,
.icv-blog-detail__content h2,
.icv-blog-detail__content h3,
.icv-blog-detail__content h4,
.icv-blog-detail__content h5,
.icv-blog-detail__content h6,
.icv-blog-detail__content h1 a,
.icv-blog-detail__content h2 a,
.icv-blog-detail__content h3 a,
.icv-blog-detail__content h4 a,
.icv-blog-detail__content h5 a,
.icv-blog-detail__content h6 a {
  color: var(--icv-blog-dark);
  margin: 28px 0 12px;
  /* Admin me heading bold na kare to normal weight hi rahe */
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.icv-blog-detail__content h1 {
  font-size: 28px;
  line-height: 1.35;
}

.icv-blog-detail__content h2 {
  font-size: 25px;
  line-height: 1.35;
}

.icv-blog-detail__content h3 {
  font-size: 21px;
  line-height: 1.35;
}

.icv-blog-detail__content h4 {
  font-size: 18px;
  line-height: 1.35;
}

.icv-blog-detail__content h5 {
  font-size: 16px;
  line-height: 1.4;
}

.icv-blog-detail__content h6 {
  font-size: 15px;
  line-height: 1.4;
}

.icv-blog-detail__content p {
  margin: 0 0 16px;
}

.icv-blog-detail__content img {
  max-width: 100%;
  height: auto;
  margin: 18px 0;
  border-radius: 6px;
}

.icv-blog-detail__content ul,
.icv-blog-detail__content ol {
  margin: 0 0 16px;
  padding: 0 0 0 1.25em;
}

.icv-blog-detail__content ul {
  list-style: disc outside;
}

.icv-blog-detail__content ol {
  list-style: decimal outside;
}

.icv-blog-detail__content li {
  display: list-item;
  margin: 0 0 8px;
  padding: 0;
  line-height: 1.7;
}

.icv-blog-detail__content li:last-child {
  margin-bottom: 0;
}

.icv-blog-detail__content ul ul {
  list-style: circle outside;
  margin: 8px 0;
}

.icv-blog-detail__content ul ul ul {
  list-style: square outside;
}

.icv-blog-detail__content a {
  color: var(--icv-blog-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.icv-blog-detail__content strong,
.icv-blog-detail__content b {
  font-weight: 700;
  color: #313339;
}

.icv-blog-detail__content blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 4px solid var(--icv-blog-primary);
  background: #f8fafc;
  color: #334155;
  font-style: italic;
}

.icv-blog-detail__content table {
  width: 100%;
  max-width: 100%;
  margin: 0 0 16px;
  border-collapse: collapse;
}

.icv-blog-detail__content table th,
.icv-blog-detail__content table td {
  padding: 10px 12px;
  border: 1px solid var(--icv-blog-border);
  text-align: left;
  vertical-align: top;
}

.icv-blog-share {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--icv-blog-border);
}

.icv-blog-share__title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--icv-blog-dark);
}

.icv-blog-share__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.icv-blog-share__list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--icv-blog-dark);
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.icv-blog-share__list a:hover {
  background: var(--icv-blog-primary);
  color: #fff;
}

.icv-blog-author {
  display: flex;
  gap: 18px;
  margin-top: 36px;
  padding: 24px;
  background: #f0f5ff;
  border: 1px solid #d6e4ff;
  border-radius: 10px;
}

.icv-blog-author__avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
}

.icv-blog-author__name {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--icv-blog-dark);
}

.icv-blog-author__bio {
  margin: 0 0 10px;
  color: var(--icv-blog-muted);
  font-size: 14px;
  line-height: 1.65;
}

.icv-blog-author__link {
  color: var(--icv-blog-primary);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.icv-blog-author__link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.icv-blog-related {
  margin-top: 50px;
}

.icv-blog-related__title {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 700;
  color: var(--icv-blog-dark);
  text-transform: none;
}

/* Sidebar widgets */
.icv-blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 100px;
}

.icv-blog-widget {
  background: #f4f6f9;
  border: none;
  border-radius: 14px;
  box-shadow: none;
  padding: 26px 28px;
}

.icv-blog-widget__title {
  margin: 0 0 18px;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #0b1b33;
}

.icv-blog-widget__cats {
  list-style: none;
  margin: 0;
  padding: 0;
}

.icv-blog-widget__cats li {
  border-bottom: 1px solid #e4e7ec;
}

.icv-blog-widget__cats li:last-child {
  border-bottom: 0;
}

.icv-blog-widget__cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  color: #4a5568;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.icv-blog-widget__cats a .fa {
  color: #94a3b8;
  font-size: 16px;
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.icv-blog-widget__cats a:hover {
  color: var(--icv-blog-primary);
}

.icv-blog-widget__cats a:hover .fa {
  color: var(--icv-blog-primary);
  transform: translateX(2px);
}

.icv-blog-widget__recent {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.icv-blog-recent {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.icv-blog-recent__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: #e8edf3;
}

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

.icv-blog-recent__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 2px;
}

.icv-blog-recent__by {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8b93a1;
  font-size: 13px;
  line-height: 1.3;
}

.icv-blog-recent__by .fa {
  color: #2f6bff;
  font-size: 12px;
}

.icv-blog-recent__title {
  color: #0b1b33;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
  text-transform: none;
}

.icv-blog-recent:hover .icv-blog-recent__title {
  color: var(--icv-blog-primary);
}

.icv-blog-widget__empty a {
  color: #4a5568;
  font-size: 14px;
  text-decoration: none;
}

.icv-blog-widget__empty a:hover {
  color: var(--icv-blog-primary);
}

.icv-blog-widget__share {
  padding: 0;
}

.icv-blog-widget--share .icv-blog-share__list a {
  background: #fff;
  box-shadow: 0 1px 4px rgba(11, 27, 51, 0.06);
}

.icv-blog-widget--share .icv-blog-share__list a:hover {
  background: var(--icv-blog-primary);
  color: #fff;
}

@media (max-width: 991px) {
  .icv-blog-detail__layout {
    grid-template-columns: 1fr;
  }

  .icv-blog-sidebar {
    display: none;
  }
}

@media (max-width: 640px) {
  .icv-blog-author {
    flex-direction: column;
    align-items: flex-start;
  }
}
