/* ============================================
   Case Study Pages - Content Styles
   Used together with main site's style2.css
   ============================================ */

/* --- Page Layout --- */
.case-page {
  padding-top: var(--header-height, 72px);
}

/* --- Case Hero Banner --- */
.case-hero {
  background: linear-gradient(135deg, var(--color-primary, #1565C0) 0%, var(--color-primary-dark, #0D47A1) 100%);
  color: white;
  padding: 48px 24px 40px;
  text-align: center;
}

.case-hero .case-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.case-hero h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  max-width: 700px;
  margin: 0 auto 12px;
}

.case-hero .case-meta {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}

/* --- Content Area --- */
.case-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.case-content .source-box {
  background: var(--color-primary-50, #E3F2FD);
  border-left: 4px solid var(--color-primary, #1565C0);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 32px;
  font-size: 14px;
  color: #3D4F65;
  line-height: 1.8;
}

.case-content .source-box a {
  color: #1565C0;
  word-break: break-all;
}

.case-content .article-body {
  font-size: 16px;
  color: #2C3E50;
  line-height: 1.9;
}

.case-content .article-body p {
  margin-bottom: 18px;
  text-indent: 2em;
}

.case-content .article-body h2 {
  font-size: 22px;
  color: #1A252F;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #E3F2FD;
}

.case-content .article-body h3 {
  font-size: 18px;
  color: #1565C0;
  margin: 24px 0 12px;
}

.case-content .article-body ul,
.case-content .article-body ol {
  margin: 0 0 18px 2em;
}

.case-content .article-body li {
  margin-bottom: 8px;
}

.case-content .article-body .highlight-box {
  background: #E3F2FD;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}

.case-content .article-body .highlight-box h3 {
  margin-top: 0;
}

.case-content .article-body .highlight-box p {
  text-indent: 0;
  margin-bottom: 0;
}

/* --- Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.feature-card {
  background: white;
  border: 1.5px solid #E8EDF2;
  border-radius: 12px;
  padding: 20px;
}

.feature-card .feature-num {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: #1565C0;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 28px;
  margin-bottom: 8px;
}

.feature-card h4 {
  font-size: 16px;
  color: #1A252F;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 14px;
  color: #5A6B83;
  text-indent: 0;
  margin-bottom: 0;
}

/* --- Article Images --- */
.article-body img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin: 24px 0;
}

/* --- CTA --- */
.case-cta {
  text-align: center;
  padding: 32px;
  background: #1565C0;
  color: white;
  border-radius: 16px;
  margin-top: 48px;
}

.case-cta h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.case-cta p {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 18px;
}

.case-cta .phone-link {
  display: inline-block;
  padding: 12px 32px;
  background: white;
  color: #1565C0;
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s;
}

.case-cta .phone-link:hover {
  transform: translateY(-2px);
}

/* --- Cases Overview Grid --- */
.cases-page .container {
  padding: 60px 24px;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.case-card-wrapper {
  text-decoration: none;
  color: inherit;
  display: block;
}

.case-card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.case-card-wrapper:hover .case-card {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.case-card-body {
  padding: 24px;
}

.case-card .hospital {
  font-size: 14px;
  color: #1565C0;
  font-weight: 600;
  margin-bottom: 10px;
}

.case-card h3 {
  font-size: 18px;
  color: #1A252F;
  margin-bottom: 8px;
  line-height: 1.4;
}

.case-card .summary {
  font-size: 14px;
  color: #5A6B83;
  line-height: 1.7;
}

.case-card .card-link {
  display: inline-block;
  margin-top: 14px;
  color: #1565C0;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
}

.case-card .card-link:hover { text-decoration: underline; }

/* --- Responsive --- */
@media (max-width: 640px) {
  .case-hero h1 { font-size: 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .case-content { padding: 24px 16px 40px; }
}
