/* Entity Detail Pages (Bank, Scheme, Product Pages) */

/* Breadcrumbs */
.breadcrumb-nav {
  padding: 1.25rem 0 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--border);
}

.breadcrumbs a {
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs li:last-child {
  color: var(--text);
  font-weight: 600;
}

/* Bank / Entity Page Hero */
.entity-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.entity-hero-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.entity-hero-main {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.entity-hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.entity-hero-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--bank-primary, var(--text));
  overflow-wrap: break-word;
}

.entity-hero-tagline {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  max-width: 720px;
  overflow-wrap: break-word;
}

.entity-hero-sidebar {
  width: 320px;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.quick-spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.quick-spec-item:last-child {
  border-bottom: none;
}

.quick-spec-label {
  color: var(--text-muted);
  font-weight: 500;
}

.quick-spec-val {
  font-weight: 700;
  color: var(--text);
  text-align: right;
}

/* Page Layout: Content & Sticky Nav */
.page-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
}

.page-sidebar-nav {
  position: sticky;
  top: 90px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.page-sidebar-link {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.page-sidebar-link:hover,
.page-sidebar-link.active {
  color: var(--bank-primary, var(--primary));
  background: var(--surface-subtle);
  border-left-color: var(--bank-primary, var(--primary));
}

.page-content-area {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  min-width: 0;
}

.content-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.content-block h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
  color: var(--bank-primary, var(--text));
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.content-block h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
  color: var(--text);
}

.content-block p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 1rem;
}

/* Feature & Product Grid */
.product-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.product-item-card {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-item-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.product-item-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Checklists & Eligibility */
.checklist-styled {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1rem 0;
}

.checklist-styled li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.925rem;
  line-height: 1.5;
  color: var(--text);
}

.check-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.2rem;
  font-weight: 800;
}

/* Verified Data Table */
.data-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: var(--surface-subtle);
  font-weight: 700;
  color: var(--text);
}

.data-table tr:hover {
  background: var(--surface-subtle);
}

/* Grievance & Customer Care Box */
.support-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.support-item {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.support-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
}

.support-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
