/* ==========================================================================
   TutorGuide in India — Single Review & Comparison Pillar Page Layout
   ========================================================================== */

body.single-post .site.grid-container,
body.page:not(.home) .site.grid-container {
  max-width: 1240px !important;
  margin: 0 auto !important;
}

body.single-post .site-content,
body.page:not(.home) .site-content {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  padding: 2rem 1.25rem 4rem !important;
}

body.single-post .content-area,
body.page:not(.home) .content-area {
  flex: 1 1 0;
  max-width: 840px;
  float: none !important;
  min-width: 0;
}

body.page:not(.home):not(.right-sidebar) .content-area {
  max-width: 100% !important;
  flex: 1 1 100% !important;
}

body.single-post #right-sidebar,
body.page:not(.home) #right-sidebar {
  flex: 0 0 340px;
  max-width: 340px;
  width: 340px;
  float: none !important;
  display: block;
}

body.single-post .inside-right-sidebar,
body.page:not(.home) .inside-right-sidebar {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

body.single-post .inside-article,
body.page:not(.home) .inside-article {
  background: #ffffff;
  border: 1px solid var(--tg-border-light, #e2e8f0);
  border-radius: 12px;
  padding: 2.5rem 2.25rem !important;
  box-shadow: 0 2px 10px rgba(11, 26, 48, 0.04);
}

/* ── Featured Header Image Banner ── */
.page-header-image,
.featured-image {
  max-width: 1240px !important;
  margin: 1.5rem auto 0 !important;
  padding: 0 1.25rem !important;
  box-sizing: border-box !important;
}

.page-header-image img,
.featured-image img {
  width: 100% !important;
  height: auto !important;
  max-height: 420px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(11, 26, 48, 0.08) !important;
}

/* ── Article Header ── */
.entry-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.entry-title {
  font-size: 30px !important;
  font-weight: 800 !important;
  color: var(--tg-navy-dark, #0b1a30) !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em;
  margin: 0.5rem 0 1rem !important;
}

.tg-post-badge-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.85rem;
}

.tg-post-cat-badge {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--tg-navy-primary, #132e54);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 999px;
}

.tg-post-verified-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--tg-emerald, #059669);
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.entry-meta {
  font-size: 13.5px;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ── Content Typography ── */
.entry-content {
  font-size: 16px;
  line-height: 1.75;
  color: #334155;
  word-break: break-word;
}

.entry-content p {
  margin-bottom: 1.4rem;
}

.entry-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px;
  margin: 1.25rem auto;
  display: block;
}

.entry-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--tg-navy-dark, #0b1a30) !important;
  margin: 2.5rem 0 1rem !important;
  line-height: 1.35;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.entry-content h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--tg-navy-primary, #132e54) !important;
  background: #f8fafc;
  border-left: 4px solid var(--tg-amber-gold, #e59819);
  padding: 12px 16px !important;
  border-radius: 0 8px 8px 0;
  margin: 2.25rem 0 1rem !important;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(11, 26, 48, 0.04);
}

.entry-content h3 strong,
.entry-content h3 em {
  color: inherit !important;
  font-style: normal;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
  margin: 1rem 0 1.5rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
  color: #334155;
}

/* ── Modern Comparison & Audit Tables ── */
.entry-content figure.wp-block-table {
  overflow-x: auto;
  margin: 1.75rem 0 2rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(11, 26, 48, 0.05);
  background: #ffffff;
}

.entry-content table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 14.5px;
  background: #ffffff;
  border: none !important;
  margin: 0 !important;
}

.entry-content table thead th,
.entry-content table thead td,
.entry-content table tr:first-child th,
.entry-content table tr:first-child td {
  background: var(--tg-navy-primary, #132e54) !important;
  color: #ffffff !important;
  font-weight: 700;
  padding: 12px 16px;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  border: none !important;
  border-bottom: 2px solid var(--tg-amber-gold, #e59819) !important;
}

.entry-content table thead th strong,
.entry-content table thead td strong,
.entry-content table tr:first-child td strong {
  color: #ffffff !important;
}

.entry-content table tbody tr {
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.15s ease;
}

.entry-content table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

.entry-content table tbody tr:hover {
  background-color: #f1f5f9;
}

.entry-content table td {
  padding: 12px 16px !important;
  color: #334155;
  line-height: 1.5;
  border: none !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

/* Responsive */
@media (max-width: 991px) {
  body.single-post .site-content,
  body.page:not(.home) .site-content {
    flex-direction: column;
    padding: 1rem 1rem 3rem !important;
    gap: 2rem;
  }

  body.single-post .content-area,
  body.page:not(.home) .content-area {
    max-width: 100%;
    width: 100%;
  }

  body.single-post #right-sidebar,
  body.page:not(.home) #right-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
  }

  body.single-post .inside-right-sidebar,
  body.page:not(.home) .inside-right-sidebar {
    position: static;
  }

  body.single-post .inside-article,
  body.page:not(.home) .inside-article {
    padding: 1.5rem 1.25rem !important;
  }

  .entry-title {
    font-size: 24px !important;
  }
}
