/* Blog cards */
.blogs-section {
  padding: 40px 0 64px 0;
}

/* Ensure grid works even if external grid framework isn't loaded */
.blogs-section #blogs-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.blogs-section #blogs-posts > div {
  flex: 0 0 calc(33.333% - 16px);
  max-width: calc(33.333% - 16px);
  box-sizing: border-box;
}

@media (max-width: 991px) {
  .blogs-section #blogs-posts > div {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }
}

@media (max-width: 767px) {
  .blogs-section #blogs-posts > div {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.blogs-section .post-card.style-2 {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.26s ease, border-radius 0.26s ease;
}

.blogs-section .post-card.style-2::before {
  content: "";
  position: absolute;
  inset: auto -40%;
  height: 120px;
  top: auto;
  bottom: -80px;
  background: radial-gradient(
    circle at top,
    rgba(123, 97, 255, 0.18),
    transparent 60%
  );
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.blogs-section .post-card.style-2:hover {
  transform: translateY(-8px) scale(1.02) rotate(-0.4deg);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.18);
  border-radius: 22px;
}

.blogs-section .post-card.style-2:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.blogs-section .post-image img {
  transition: transform 0.32s ease;
}

.blogs-section .post-card:hover .post-image img {
  transform: scale(1.06);
}

.blogs-section .post-desc {
  padding: 20px 20px 22px 20px;
}

.blogs-section .post-title h4 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
}

.blogs-section .post-title a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.blogs-section .post-title a:hover {
  color: #1f2a44;
}

.blogs-section .post-bottom {
  margin: 0 0 12px 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.blogs-section .list-inline-item i {
  font-size: 13px;
}

.blogs-section .posted-on a {
  color: #6b7280;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

.blogs-section .themeht-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0f172a;
  text-decoration: none;
  background: linear-gradient(90deg, #6ab5c3, #e4e2ff);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, transform 0.18s ease, gap 0.18s ease;
}

.blogs-section .themeht-link-btn i {
  display: none; /* keep it clean; we add arrow via ::after */
}

.blogs-section .themeht-link-btn::after {
  content: "↗";
  font-size: 14px;
  line-height: 1;
  transform: translateX(0);
  transition: transform 0.18s ease;
}

.blogs-section .post-card.style-2:hover .themeht-link-btn {
  background: linear-gradient(90deg, #7b61ff, #ff8fa3);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}

.blogs-section .post-card.style-2:hover .themeht-link-btn::after {
  transform: translateX(2px);
}

/* Mobile friendly adjustments */
@media (max-width: 767px) {
  .blogs-section {
    padding: 26px 0 42px 0;
  }

  .blogs-section .post-card.style-2 {
    border-radius: 14px;
  }

  .blogs-section .post-card.style-2:hover {
    transform: none;
    border-radius: 14px;
  }

  .blogs-section .post-desc {
    padding: 14px 14px 16px 14px;
  }

  .blogs-section .post-title h4 {
    font-size: 16px;
    line-height: 1.3;
  }

  .blogs-section .themeht-link-btn {
    padding: 8px 12px;
    font-size: 13px;
    width: auto;
  }

  .blogs-section .themeht-link-btn::after {
    font-size: 13px;
  }
}

/* Blog detail layout (reader-friendly + professional) */
.blog-detail-page .blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.2rem;
  align-items: start;
}

@media (min-width: 992px) {
  .blog-detail-page .blog-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

.blog-detail-page .blog-article {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(223, 199, 179, 0.9);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 18px 50px rgba(154, 113, 84, 0.18);
}

.blog-detail-page .blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.blog-detail-page .meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(223, 199, 179, 0.85);
  background: rgba(255, 255, 255, 0.9);
  color: #5b4336;
  font-weight: 700;
  font-size: 0.88rem;
}

.blog-detail-page .blog-content p {
  margin: 1rem 0;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-soft);
}

.blog-detail-page .blog-content ul {
  margin: 0.9rem 0 1rem 1.1rem;
  color: var(--text-soft);
}

.blog-detail-page .blog-content h3 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.55rem;
  margin: 2.1rem 0 0.75rem;
  color: #2b1f18;
  line-height: 1.2;
}

.blog-detail-page .blog-content blockquote {
  margin: 1.8rem 0;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  background: radial-gradient(
    circle at top left,
    rgba(255, 243, 235, 0.96),
    rgba(244, 213, 194, 0.98)
  );
  border: 1px solid rgba(219, 180, 151, 0.9);
  color: #432823;
  font-weight: 650;
  line-height: 1.65;
}

.blog-detail-page .blog-callout {
  margin-top: 1.8rem;
  padding: 1.2rem 1.25rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(223, 199, 179, 0.9);
  box-shadow: 0 12px 34px rgba(160, 124, 98, 0.12);
}

.blog-detail-page .blog-callout h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.blog-detail-page .blog-toc-card {
  position: sticky;
  top: 96px;
  padding: 1.2rem 1.2rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(223, 199, 179, 0.9);
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(160, 124, 98, 0.14);
}

@media (max-width: 991px) {
  .blog-detail-page .blog-toc-card {
    position: relative;
    top: 0;
  }
}

.blog-detail-page .blog-toc-title {
  margin: 0 0 0.85rem;
  font-weight: 850;
  color: #5b4336;
  font-size: 1rem;
}

.blog-detail-page .blog-toc-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.blog-detail-page .blog-toc-links a {
  padding: 0.62rem 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(223, 199, 179, 0.75);
  background: rgba(255, 255, 255, 0.58);
  color: #5b4336;
  font-weight: 800;
  font-size: 0.92rem;
  transition: transform var(--transition-fast),
    background var(--transition-fast), border-color var(--transition-fast);
}

.blog-detail-page .blog-toc-links a:hover {
  transform: translateY(-1px);
  background: rgba(255, 233, 218, 0.85);
  border-color: rgba(193, 160, 139, 0.95);
}

.blog-detail-page .section {
  /* reduce spacing a bit for reader pages */
  padding: 3.4rem 0;
}
