/* Shared responsive & accessible article layout for Raghavendra Hospitals Health Guides */
.blog-hero {
  background: linear-gradient(135deg, var(--accent-green-dark), var(--accent-green));
  color: #ffffff;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3.25rem);
}

.blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

.blog-breadcrumb a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.blog-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 1.15rem + 2.5vw, 2.75rem);
  line-height: 1.2;
  color: #ffffff;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
  margin-bottom: 1rem;
  max-width: 28ch;
}

.blog-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.blog-shell {
  padding: clamp(2rem, 5vw, 4rem) 0;
  background: var(--bg-primary);
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

@media (min-width: 992px) {
  .blog-layout {
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  }
}

.article-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  min-inline-size: 0;
}

.article-prose {
  max-width: 68ch;
  font-size: clamp(0.98rem, 0.9rem + 0.3vw, 1.08rem);
  line-height: 1.75;
  color: var(--text-secondary);
  overflow-wrap: break-word;
  word-break: normal;
}

.article-prose h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 1.05rem + 1.2vw, 1.85rem);
  line-height: 1.28;
  color: var(--text-primary);
  text-wrap: balance;
  margin: 2rem 0 0.85rem;
}

.article-prose h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.35rem);
  line-height: 1.35;
  color: var(--accent-green-dark);
  margin: 1.5rem 0 0.6rem;
}

.article-prose p {
  margin-bottom: 1.1rem;
  text-wrap: pretty;
}

.article-prose ul,
.article-prose ol {
  margin: 0.75rem 0 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-prose a {
  color: var(--accent-green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-prose a:hover {
  color: var(--accent-orange-dark);
}

.article-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  margin-bottom: 1.5rem;
  display: block;
}

.takeaways-box {
  background: var(--bg-primary);
  border-left: 4px solid var(--accent-green);
  border-radius: var(--border-radius-sm);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.75rem;
}

.takeaways-box h2 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--accent-green-dark);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
}

.article-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 0.92rem;
}

.article-table caption {
  padding: 0.75rem 1rem;
  font-weight: 700;
  text-align: left;
  color: var(--text-primary);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.article-table th,
.article-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.article-table th {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 700;
}

.faq-section {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-color);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: var(--bg-primary);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  list-style: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent-green);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 1.15rem 1rem;
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.related-guides {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-color);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.related-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: var(--bg-primary);
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.related-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-2px);
}

.related-card-dept {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-green);
  margin-bottom: 0.35rem;
}

.related-card-title {
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.35;
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-inline-size: 0;
}

.sidebar-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-cta {
  background: linear-gradient(135deg, var(--accent-green-dark), var(--accent-green));
  color: #ffffff;
}

.sidebar-cta h2,
.sidebar-cta p {
  color: #ffffff;
}

.sidebar-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.sidebar-btn-stack a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  text-align: center;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}

.hub-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-green);
}

.hub-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.hub-card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.hub-card-body h2 {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  line-height: 1.35;
  margin: 0.5rem 0 0.65rem;
  color: var(--text-primary);
}

.hub-card-body p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .hub-card,
  .related-card {
    transition: none;
  }
}
