/* Call Suite Blog Styles — matches main design system */

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--glass-s);
  backdrop-filter: blur(20px);
  border: 1px solid var(--gb);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--gs);
  transition: all .25s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,196,167,.35);
  box-shadow: var(--gsl);
}

.blog-card-img {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--tg);
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.04);
}

.blog-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--teal);
  opacity: .5;
}

.blog-card-body {
  padding: 22px 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .78rem;
  color: var(--ts);
  margin-bottom: 10px;
}

.blog-meta i {
  margin-right: 4px;
  color: var(--teal);
}

.blog-card-body h2 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.35;
}

.blog-card-body h2 a {
  color: var(--tx);
  text-decoration: none;
  font-weight: 700;
}

.blog-card-body h2 a:hover {
  color: var(--teal);
  text-decoration: none;
}

.blog-card-body p {
  font-size: .88rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.blog-read {
  font-size: .88rem;
  font-weight: 600;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-read:hover {
  text-decoration: none;
  gap: 10px;
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
}

.page-info {
  font-size: .9rem;
  color: var(--ts);
}

/* Sidebar */
.sidebar-box {
  padding: 24px 22px;
}

.sidebar-box h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,196,167,.15);
}

.cat-list {
  list-style: none;
}

.cat-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  color: var(--tm);
  font-size: .9rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.04);
}

.cat-list li a:hover {
  color: var(--teal);
}

.cat-list li a span {
  background: var(--tg);
  color: var(--teal-3);
  font-size: .75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

/* Single post */
.single-featured {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--gsl);
  border: 1px solid var(--gb);
  margin-top: 10px;
}

.single-featured img {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

.single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.single-content {
  padding: 40px 44px;
}

.post-body {
  font-family: var(--fs);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--tm);
}

.post-body h2 {
  font-family: var(--fd);
  font-size: 1.4rem;
  margin: 32px 0 14px;
  color: var(--tx);
}

.post-body h3 {
  font-family: var(--fd);
  font-size: 1.15rem;
  margin: 24px 0 10px;
}

.post-body p {
  margin-bottom: 18px;
}

.post-body ul, .post-body ol {
  margin: 0 0 18px 1.4em;
}

.post-body li {
  margin-bottom: 8px;
}

.post-body a {
  color: var(--teal);
  font-weight: 600;
}

.post-share {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,196,167,.15);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  color: var(--ts);
}

.post-share a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  transition: all .2s;
}

.post-share a:hover {
  background: var(--teal);
  color: #fff;
  text-decoration: none;
}

.rel-card {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
  text-decoration: none;
  color: inherit;
}

.rel-card:last-child {
  border-bottom: none;
}

.rel-card img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.rel-card strong {
  display: block;
  font-size: .85rem;
  line-height: 1.3;
  color: var(--tx);
  margin-bottom: 4px;
}

.rel-card span {
  font-size: .75rem;
  color: var(--ts);
}

.rel-card:hover strong {
  color: var(--teal);
}

/* Admin shared bits used on public if needed */
.admin-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  animation: fadeInUp .25s ease;
}

.admin-toast.success { background: #10b981; color: #fff; }
.admin-toast.error { background: #ef4444; color: #fff; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .blog-layout,
  .single-layout {
    grid-template-columns: 1fr;
  }
  .blog-sidebar {
    order: -1;
  }
  .single-content {
    padding: 28px 22px;
  }
}
