/* صفحه معرفی پرونده الکترونیک سلامت FHIR */
.hr-page {
  font-family: 'Vazirmatn', sans-serif;
  background: linear-gradient(180deg, #eff6ff 0%, #f0fdfa 35%, #f8fafc 100%);
  color: #0f172a;
  min-height: 100vh;
}

.hr-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 45%, #0f766e 100%);
  color: #fff;
  padding: 52px 0 44px;
  overflow: hidden;
  position: relative;
}

.hr-hero-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hr-hero-text {
  flex: 1;
  min-width: 280px;
}

.hr-back {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  opacity: 0.9;
}

.hr-back:hover {
  color: #fff;
  opacity: 1;
}

.hr-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.hr-hero h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.35;
}

.hr-hero-lead {
  font-size: 1.02rem;
  line-height: 1.8;
  opacity: 0.94;
  max-width: 620px;
  margin-bottom: 18px;
}

.hr-status-active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.22);
  border: 1px solid rgba(74, 222, 128, 0.55);
  color: #dcfce7;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 700;
}

.hr-hero-art {
  flex-shrink: 0;
  width: min(260px, 100%);
}

.hr-hero-art svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.25));
}

.hr-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hr-btn-primary {
  background: #fff;
  color: #0f766e;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 22px;
  text-decoration: none;
  border: 2px solid #fff;
}

.hr-btn-primary:hover {
  background: #f0fdfa;
  color: #0f766e;
}

.hr-btn-outline {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 10px 22px;
  text-decoration: none;
  font-weight: 600;
}

.hr-btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hr-body {
  padding: 40px 0 24px;
}

.hr-page .footer {
  margin-top: 0;
}

.hr-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
}

.hr-card--cta {
  margin-top: 8px;
  padding: 32px 24px;
  clear: both;
}

.hr-howto-card {
  margin-top: 16px;
}

.hr-col-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hr-card h2,
.hr-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f766e;
  margin-bottom: 14px;
}

.hr-card p,
.hr-card li {
  color: #475569;
  line-height: 1.85;
  font-size: 0.95rem;
}

.hr-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hr-mini-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.hr-mini-card i {
  font-size: 1.5rem;
  color: #0f766e;
  margin-bottom: 8px;
}

.hr-mini-card h4 {
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.hr-mini-card p {
  font-size: 0.78rem;
  margin: 0;
  line-height: 1.5;
}

.hr-resource-table {
  width: 100%;
  font-size: 0.86rem;
}

.hr-resource-table th {
  background: #f0fdfa;
  color: #0f766e;
  font-weight: 700;
  padding: 10px 12px;
}

.hr-resource-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

.hr-resource-table code {
  font-size: 0.8rem;
  color: #1d4ed8;
}

.hr-arch-diagram {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border: 1px dashed #99f6e4;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.hr-arch-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}

.hr-arch-box {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 14px;
}

.hr-arch-arrow {
  color: #14b8a6;
}

.hr-fhir-link {
  font-size: 0.85rem;
  color: #64748b;
}

.hr-fhir-link a {
  color: #0f766e;
  font-weight: 600;
}

@media (max-width: 992px) {
  .hr-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hr-hero h1 {
    font-size: 1.3rem;
  }

  .hr-hero-art {
    max-width: 200px;
    margin: 0 auto;
  }
}
