/* XJTUFAH Hospital Website - Professional Medical Style */
:root {
  --primary: #0066B3;
  --primary-dark: #004A82;
  --primary-light: #E8F4FD;
  --secondary: #2E9B8A;
  --accent: #1ABC9C;
  --text: #2C3E50;
  --text-light: #5D6D7E;
  --bg: #FFFFFF;
  --bg-alt: #F7F9FC;
  --border: #DFE6EE;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}
a { color: var(--primary); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }
img { max-width: 100%; height: auto; }

/* ===== HEADER ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 18px;
}
.logo-text { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.3; }
.logo-text small { display: block; font-weight: 400; font-size: 11px; color: var(--text-light); }

.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: all .2s;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--primary-light);
  color: var(--primary);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0066B3 0%, #2E9B8A 100%);
  color: #fff;
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
  padding: 6px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: .5px;
}
.hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero p {
  font-size: 18px;
  opacity: .92;
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .25s;
}
.btn-primary { background: #fff; color: var(--primary); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.15); opacity: 1; }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  opacity: 1;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: #fff;
  padding: 40px 24px;
  margin-top: -30px;
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-lg);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item .stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.stat-item .stat-label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.section-header p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}
.section-accent {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ===== DUAL CENTER ===== */
.dual-center {
  background: var(--bg-alt);
}
.dc-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.dc-missions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.dc-mission-item {
  background: var(--primary-light);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.dc-mission-item .num {
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== DEPARTMENTS GRID ===== */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dept-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .3s;
  border: 1px solid var(--border);
}
.dept-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.dept-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 36px;
}
.dept-card-body { padding: 24px; }
.dept-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.dept-card-body p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}
.dept-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

/* ===== TECH HIGHLIGHTS ===== */
.tech-list { display: flex; flex-direction: column; gap: 20px; }
.tech-item {
  display: flex;
  gap: 20px;
  background: #fff;
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: all .25s;
}
.tech-item:hover { box-shadow: var(--shadow-lg); }
.tech-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.tech-info h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.tech-info p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== RESEARCH / NUMBERS ===== */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.number-card {
  background: #fff;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}
.number-card .big-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
}
.number-card .num-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
}

/* ===== DEPT DIRECTORY TABLE ===== */
.dept-table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.dept-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}
.dept-table th {
  background: var(--primary);
  color: #fff;
  padding: 14px 20px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
}
.dept-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.dept-table tr:hover td { background: var(--primary-light); }
.badge-nkc {
  display: inline-block;
  background: #FEF3C7;
  color: #92400E;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* ===== CONTACT / FOOTER ===== */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-card {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
}
.contact-card .icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}
.contact-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.contact-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.site-footer {
  background: #1A2B3C;
  color: rgba(255,255,255,.7);
  padding: 48px 24px 32px;
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .logo-text {
  color: #fff;
  font-size: 17px;
  margin-bottom: 12px;
}
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-col h5 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  padding: 4px 0;
}
.footer-col a:hover { color: #fff; opacity: 1; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: 12px;
}

/* ===== PAGE BANNER (subpages) ===== */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 48px 24px;
  text-align: center;
}
.page-banner h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}
.page-banner p {
  font-size: 16px;
  opacity: .85;
}
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 13px;
  opacity: .75;
}
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb span { margin: 0 8px; }

/* ===== CONTENT AREA ===== */
.content-area {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}
.content-prose {
  max-width: 820px;
  margin: 0 auto;
}
.content-prose h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}
.content-prose h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
}
.content-prose p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
}
.content-prose ul, .content-prose ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.content-prose li {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 6px;
  color: var(--text);
}

/* Feature boxes for department pages */
.feature-box {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 24px 0;
  border-left: 4px solid var(--accent);
}
.feature-box h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.feature-box p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-light);
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.outcome-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.outcome-card h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.outcome-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
  .stats-grid, .dept-grid, .numbers-grid, .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .dc-missions { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 30px; }
  .main-nav { display: none; }
}
@media (max-width: 600px) {
  .stats-grid, .dept-grid, .numbers-grid, .contact-cards, .outcome-grid { grid-template-columns: 1fr; }
  .dc-missions { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
}
