/* ==================================================================
   DR. BHAGAT'S CLINIC - CLINICAL EDITORIAL & GUIDES
   Architectural Triptych with Big Bottom-Right Corner Sr. No & Pagination
   ================================================================== */

.blog-section {
  padding: 85px 0 90px;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

.blog-section .container {
  position: relative;
  z-index: 1;
}

/* ─── 1. PAGES CONTAINER & FADE ANIMATION ─── */
.blog-pages-container {
  position: relative;
  margin-top: 40px;
}

.blog-page {
  animation: blogFadeIn 0.35s ease;
}

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

/* ─── 2. TRIPTYCH GRID (LEFT BIG | MIDDLE 2 STACKED | RIGHT BIG) ─── */
.blog-triptych-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  gap: 24px;
  align-items: stretch;
}

/* ─── 3. PILLAR CARDS (LEFT & RIGHT BIG CARDS WITH CLEAN IMAGES) ─── */
.blog-pillar-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
  box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.blog-pillar-card:hover {
  transform: translateY(-4px);
}

.blog-pillar-card.card-laparoscopy:hover {
  border-color: #bae6fd;
  box-shadow: 0 14px 32px -4px rgba(2, 132, 199, 0.12);
}

.blog-pillar-card.card-laser:hover {
  border-color: #99f6e4;
  box-shadow: 0 14px 32px -4px rgba(13, 148, 136, 0.12);
}

.blog-pillar-card.card-hernia:hover {
  border-color: #bfdbfe;
  box-shadow: 0 14px 32px -4px rgba(37, 99, 235, 0.12);
}

.blog-pillar-card.card-pilonidal:hover {
  border-color: #a7f3d0;
  box-shadow: 0 14px 32px -4px rgba(5, 150, 105, 0.12);
}

/* Clean Media Box */
.blog-pillar-media {
  position: relative;
  width: 100%;
  height: 185px;
  overflow: hidden;
  background: #e2e8f0;
}

.blog-pillar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

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

/* Pillar Card Body */
.blog-pillar-body {
  padding: 22px 24px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ─── 4. CATEGORY / SUBJECT LABELS ─── */
.blog-category {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.blog-category.category-blue {
  color: #0284c7;
}

.blog-category.category-rose {
  color: #e11d48;
}

.blog-category.category-violet {
  color: #7c3aed;
}

.blog-category.category-teal {
  color: #0d9488;
}

/* ─── 5. MAIN HEADINGS ─── */
.blog-pillar-title {
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.4;
  color: #0f172a;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-pillar-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-pillar-card.card-laparoscopy:hover .blog-pillar-title a,
.blog-pillar-card.card-hernia:hover .blog-pillar-title a {
  color: #0284c7;
}

.blog-pillar-card.card-laser:hover .blog-pillar-title a,
.blog-pillar-card.card-pilonidal:hover .blog-pillar-title a {
  color: #0d9488;
}

/* ─── 6. DESCRIPTIONS ─── */
.blog-pillar-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── 7. AUTHOR BYLINE & BOTTOM-RIGHT BIG SERIAL NUMBER ─── */
.blog-author-row {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.blog-author-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #e2e8f0;
  flex-shrink: 0;
}

.blog-author-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

/* Big Stylish Serial Number in Bottom Right Corner */
.blog-corner-sr {
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  margin-left: auto;
  flex-shrink: 0;
}

.blog-pillar-card.card-laparoscopy:hover .blog-corner-sr,
.blog-pillar-card.card-hernia:hover .blog-corner-sr {
  color: #0284c7;
  transform: translateY(-2px);
}

.blog-text-card.card-maternity:hover .blog-corner-sr {
  color: #e11d48;
  transform: translateY(-2px);
}

.blog-text-card.card-fertility:hover .blog-corner-sr {
  color: #7c3aed;
  transform: translateY(-2px);
}

.blog-pillar-card.card-laser:hover .blog-corner-sr,
.blog-pillar-card.card-pilonidal:hover .blog-corner-sr {
  color: #0d9488;
  transform: translateY(-2px);
}

/* ─── 8. MIDDLE COLUMN (2 TEXT-ONLY CARDS - NO IMAGES) ─── */
.blog-middle-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-text-card {
  flex: 1;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 20px 22px;
  box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.blog-text-card:hover {
  transform: translateY(-3px);
}

.blog-text-card.card-maternity:hover {
  border-color: #fecdd3;
  box-shadow: 0 12px 28px -4px rgba(225, 29, 72, 0.12);
}

.blog-text-card.card-fertility:hover {
  border-color: #ddd6fe;
  box-shadow: 0 12px 28px -4px rgba(124, 58, 237, 0.12);
}

.blog-text-title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.38;
  color: #0f172a;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-text-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-text-card.card-maternity:hover .blog-text-title a {
  color: #e11d48;
}

.blog-text-card.card-fertility:hover .blog-text-title a {
  color: #7c3aed;
}

.blog-text-desc {
  font-size: 0.84rem;
  line-height: 1.5;
  color: #64748b;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── 9. PAGINATION CONTROLS ─── */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.blog-page-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.blog-page-arrow:hover:not(:disabled) {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.blog-page-arrow:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #94a3b8;
  transform: none;
  box-shadow: none;
}

.blog-page-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-page-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.blog-page-number:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.blog-page-number.is-active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

/* ─── 10. RESPONSIVE MEDIA QUERIES ─── */
@media (max-width: 1120px) {
  .blog-triptych-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .blog-pillar-card.card-laser,
  .blog-pillar-card.card-pilonidal {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 38% 62%;
  }

  .blog-pillar-card.card-laser .blog-pillar-media,
  .blog-pillar-card.card-pilonidal .blog-pillar-media {
    height: 100%;
  }
}

@media (max-width: 768px) {
  .blog-section {
    padding: 60px 0 65px;
  }

  .blog-triptych-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 24px;
  }

  .blog-pillar-card.card-laser,
  .blog-pillar-card.card-pilonidal {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
  }

  .blog-pillar-card.card-laser .blog-pillar-media,
  .blog-pillar-card.card-pilonidal .blog-pillar-media {
    height: 180px;
  }

  .blog-pillar-body {
    padding: 18px 20px 16px;
  }

  .blog-text-card {
    padding: 18px 20px 16px;
  }

  .blog-corner-sr {
    font-size: 1.9rem;
  }

  .blog-pagination {
    margin-top: 28px;
  }
}
