/* ==========================================
   重庆璧山博爱医院官网 - 主样式文件
   ========================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: #333;
  line-height: 1.7;
  background: #f5f7fa;
  overflow-x: hidden;
}

a { color: #2980b9; text-decoration: none; transition: color .3s; }
a:hover { color: #1a5276; }

img { max-width: 100%; display: block; }

ul, ol { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Color Variables --- */
:root {
  --primary: #1a5276;
  --primary-light: #2980b9;
  --green: #27ae60;
  --red: #e74c3c;
  --bg: #f5f7fa;
  --white: #fff;
  --gray-light: #ecf0f1;
  --gray: #bdc3c7;
  --gray-dark: #7f8c8d;
  --text: #333;
  --text-light: #555;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-hover: 0 8px 24px rgba(0,0,0,.15);
  --radius: 8px;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  z-index: 1000;
  transition: background .3s, box-shadow .3s;
}

.navbar.scrolled {
  background: rgba(255,255,255,.92);
  box-shadow: 0 2px 20px rgba(0,0,0,.1);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.nav-logo svg {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-links a {
  padding: 8px 14px;
  color: var(--text);
  font-size: 15px;
  position: relative;
  transition: color .3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-light);
  transition: width .3s, left .3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
  left: 20%;
}

/* Mobile hamburger */
.hamburger {
  display: none;
  width: 30px;
  height: 24px;
  cursor: pointer;
  position: relative;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  position: absolute;
  left: 0;
  transition: all .3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 22px; }

.hamburger.active span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.4);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--white);
  z-index: 1060;
  transition: right .3s ease;
  padding: 80px 30px 30px;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  color: var(--text);
  border-bottom: 1px solid var(--gray-light);
  transition: color .3s, padding-left .3s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--primary);
  padding-left: 8px;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================
   Banner / Hero
   ========================================== */
.hero {
  margin-top: 70px;
  position: relative;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 480px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .8s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 700px;
  padding: 0 20px;
}

.hero-slide-content h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero-slide-content p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.hero-slide-content .btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--white);
  color: var(--primary);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  transition: transform .3s, box-shadow .3s;
}

.hero-slide-content .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background .3s, transform .3s;
}

.hero-dot.active {
  background: var(--white);
  transform: scale(1.2);
}

/* ==========================================
   Section Common
   ========================================== */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-header p {
  font-size: 16px;
  color: var(--gray-dark);
}

.section-header .divider {
  width: 60px;
  height: 3px;
  background: var(--primary-light);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ==========================================
   Stats Bar
   ========================================== */
.stats-bar {
  background: var(--primary);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  color: var(--white);
}

.stat-number {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number .suffix {
  font-size: 20px;
  font-weight: 400;
}

.stat-label {
  font-size: 14px;
  opacity: .85;
}

/* ==========================================
   Cards Grid
   ========================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cards-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.cards-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  border: 1px solid transparent;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-light);
  border-radius: 50%;
  transition: background .3s;
}

.card:hover .card-icon {
  background: var(--primary-light);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  transition: stroke .3s;
}

.card:hover .card-icon svg {
  stroke: var(--white);
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ==========================================
   Department Expand Card (legacy, keep for reference)
   ========================================== */

/* ==========================================
   Department Tabs
   ========================================== */
.dept-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  justify-content: center;
}

.dept-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .3s;
  font-size: 14px;
  color: var(--text);
  box-shadow: var(--shadow);
}

.dept-tab svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary-light);
  fill: none;
  stroke-width: 1.8;
  transition: stroke .3s;
}

.dept-tab:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-hover);
}

.dept-tab.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.dept-tab.active svg {
  stroke: var(--white);
}

.dept-panels {
  position: relative;
}

.dept-panel {
  display: none;
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  animation: fadeInPanel .3s ease;
}

.dept-panel.active {
  display: block;
}

@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dept-panel h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dept-panel h3 svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary-light);
  fill: none;
  stroke-width: 2;
}

.dept-panel p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 12px;
}

.dept-panel ul {
  margin: 12px 0;
  padding-left: 20px;
}

.dept-panel ul li {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
}

.dept-panel ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
  position: absolute;
  left: 0;
  top: 8px;
}

.dept-panel .link-more {
  display: inline-block;
  color: var(--primary-light);
  font-weight: 600;
  font-size: 14px;
  margin-top: 12px;
  transition: color .3s;
}

.dept-panel .link-more:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .dept-tabs {
    gap: 6px;
    justify-content: flex-start;
  }
  .dept-tab {
    padding: 8px 12px;
    font-size: 13px;
  }
  .dept-tab svg {
    width: 16px;
    height: 16px;
  }
  .dept-panel {
    padding: 20px;
  }
  .dept-panel h3 {
    font-size: 18px;
  }
  .dept-panel p {
    font-size: 14px;
  }
}

/* ==========================================
   Feature List (Icon + Text rows)
   ========================================== */
.feature-list {
  display: grid;
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}

.feature-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-hover);
}

.feature-item svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary-light);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 14px;
  color: var(--text-light);
}

/* ==========================================
   Image Placeholder
   ========================================== */
.img-placeholder {
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-dark);
  font-size: 14px;
  border-radius: var(--radius);
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

.img-placeholder::before {
  content: '';
  width: 50px;
  height: 50px;
  border: 2px dashed var(--gray);
  border-radius: 4px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -70%);
}

.img-placeholder::after {
  content: attr(data-label);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 10px);
}

.img-placeholder.large {
  min-height: 400px;
  font-size: 16px;
}

.img-placeholder.wide {
  min-height: 280px;
}

/* ==========================================
   Expert Card
   ========================================== */
.expert-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}

.expert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.expert-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gray-light);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--gray);
  overflow: hidden;
}

.expert-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.expert-card .title {
  font-size: 13px;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.expert-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Expert avatar overrides for img-placeholder */
.expert-avatar.img-placeholder::before {
  display: none;
}

.expert-avatar.img-placeholder::after {
  transform: translate(-50%, 0);
  bottom: 8px;
  top: auto;
  left: 50%;
  font-size: 11px;
  color: var(--gray-dark);
  opacity: .7;
}

/* ==========================================
   Equipment Card
   ========================================== */
.equip-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}

.equip-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.equip-card .img-placeholder {
  min-height: 180px;
  border-radius: 0;
}

.equip-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.equip-card .equip-info {
  padding: 20px;
}

.equip-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.equip-card p {
  font-size: 14px;
  color: var(--text-light);
}

/* ==========================================
   Insurance Section
   ========================================== */
.insurance-highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 50px;
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 40px;
}

.insurance-highlight h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.insurance-highlight p {
  font-size: 16px;
  opacity: .9;
}

.insurance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.insurance-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}

.insurance-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.insurance-block h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.insurance-block h4 svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary-light);
  fill: none;
  stroke-width: 2;
}

.insurance-block p,
.insurance-block li {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.insurance-block ul {
  padding-left: 16px;
  margin-top: 10px;
}

.insurance-block ul li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 4px;
}

.insurance-block ul li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  position: absolute;
  left: 0;
  top: 8px;
}

.rate-badge {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================
   Process Steps
   ========================================== */
.process-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 40px 0;
  position: relative;
}

.process-step {
  flex: 1;
  max-width: 220px;
  text-align: center;
  position: relative;
}

.process-step::after {
  content: '';
  width: 50px;
  height: 2px;
  background: var(--gray);
  position: absolute;
  top: 24px;
  right: -25px;
}

.process-step:last-child::after {
  display: none;
}

.process-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
}

.process-step h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.process-step p {
  font-size: 12px;
  color: var(--gray-dark);
}

/* ==========================================
   Disease List (Insurance Page)
   ========================================== */
.disease-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 20px;
}

.disease-list-col {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.disease-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-light);
}

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

.disease-item svg {
  flex-shrink: 0;
}

.disease-item span {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.disease-note {
  text-align: center;
  font-size: 14px;
  color: var(--gray-dark);
  margin-top: 20px;
  padding: 16px 24px;
  background: var(--gray-light);
  border-radius: var(--radius);
}

/* ==========================================
   Nursing Features
   ========================================== */
.nursing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.nursing-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform .3s, box-shadow .3s;
}

.nursing-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.nursing-item-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-light);
  border-radius: 10px;
  flex-shrink: 0;
  transition: background .3s;
}

.nursing-item:hover .nursing-item-icon {
  background: var(--primary-light);
}

.nursing-item-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.8;
  transition: stroke .3s;
}

.nursing-item:hover .nursing-item-icon svg {
  stroke: var(--white);
}

.nursing-item-text h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.nursing-item-text p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.map-container {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-light);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-item svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary-light);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 14px;
  color: var(--text-light);
}

/* ==========================================
   CTA Banner
   ========================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 60px 0;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 16px;
  opacity: .9;
  margin-bottom: 24px;
}

.cta-banner .btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--white);
  color: var(--primary);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  transition: transform .3s, box-shadow .3s;
}

.cta-banner .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col {
  padding-bottom: 0;
}

.footer-collapse {
  max-height: none;
  overflow: visible;
}

.footer h4 .toggle-icon {
  display: none;
}

.footer h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--white);
  position: relative;
}

.footer p {
  font-size: 14px;
  opacity: .8;
  line-height: 1.7;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,.8);
  padding: 4px 0;
  transition: color .3s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  opacity: .6;
}

/* Mobile footer accordion */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-col {
    border-bottom: 1px solid rgba(255,255,255,.15);
  }
  .footer-col:last-child {
    border-bottom: none;
  }
  .footer h4 {
    font-size: 15px;
    margin-bottom: 0;
    padding: 14px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .footer h4 .toggle-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    transition: transform .3s;
  }
  .footer h4 .toggle-icon svg {
    width: 16px;
    height: 16px;
    stroke: rgba(255,255,255,.7);
    fill: none;
    stroke-width: 2;
  }
  .footer-col.open h4 .toggle-icon {
    transform: rotate(180deg);
  }
  .footer-col .footer-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .footer-col .footer-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .footer-col.open .footer-collapse {
    max-height: 200px;
  }
  .footer-collapse p,
  .footer-collapse .footer-links a {
    padding-bottom: 8px;
  }
  .footer-bottom { font-size: 12px; }
}

/* ==========================================
   Page Hero (sub pages)
   ========================================== */
.page-hero {
  margin-top: 70px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 60px 0;
  text-align: center;
  color: var(--white);
}

.page-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-hero p {
  font-size: 16px;
  opacity: .85;
}

/* ==========================================
   About Page Specifics
   ========================================== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.about-text h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-text p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* About Carousel */
.about-carousel {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.about-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .6s ease;
}

.about-slide.active {
  opacity: 1;
}

.about-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.about-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background .3s;
}

.about-dot.active {
  background: #fff;
}

.about-dot:hover {
  background: rgba(255,255,255,.8);
}

.qualifications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.qualification-item {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--white);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.qualification-item svg {
  width: 24px;
  height: 24px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2;
}

.qualification-item span {
  font-size: 14px;
  color: var(--text);
}

/* Medical-Nursing Carousel */
.mn-carousel {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mn-carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.mn-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .6s ease;
}

.mn-slide.active {
  opacity: 1;
}

.mn-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mn-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.mn-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background .3s;
}

.mn-dot.active {
  background: #fff;
}

.mn-dot:hover {
  background: rgba(255,255,255,.8);
}

/* Environment Grid */
.env-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.env-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}

.env-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.env-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .env-grid { grid-template-columns: 1fr; }
  .mn-carousel { height: 240px; }
  .env-item img { height: 180px; }
}

/* ==========================================
   Department Carousel
   ========================================== */
.dept-carousel {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.dept-carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.dept-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .6s ease;
}

.dept-slide.active {
  opacity: 1;
}

.dept-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.dept-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.dept-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background .3s;
}

.dept-dot.active {
  background: var(--white);
}

@media (max-width: 768px) {
  .dept-carousel { height: 180px; }
}

/* ==========================================
   Driver's Exam Section
   ========================================== */
.driver-intro {
  background: var(--white);
  padding: 24px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  border-left: 4px solid var(--primary-light);
}

.driver-intro p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 8px;
}

.driver-intro p:last-child {
  margin-bottom: 0;
}

.driver-process {
  margin-bottom: 30px;
}

.driver-process h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-light);
}

.driver-process h3 svg {
  stroke: var(--primary-light);
}

.driver-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.driver-image-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}

.driver-image-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.driver-image-item img {
  width: 100%;
  height: auto;
  display: block;
}

.driver-medical-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.driver-medical-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}

.driver-medical-step:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-hover);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.step-content strong {
  color: var(--primary);
}

@media (max-width: 1024px) {
  .driver-images { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .driver-images { grid-template-columns: 1fr; }
  .driver-intro { padding: 20px; }
  .driver-medical-step { padding: 16px; }
  .step-number { width: 36px; height: 36px; font-size: 16px; }
}

/* ==========================================
   Animations
   ========================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: .1s; }
.animate-delay-2 { transition-delay: .2s; }
.animate-delay-3 { transition-delay: .3s; }
.animate-delay-4 { transition-delay: .4s; }

/* ==========================================
   Responsive - Tablet & Mobile
   ========================================== */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-content { grid-template-columns: 1fr; }
  .nursing-grid { grid-template-columns: repeat(2, 1fr); }
  .disease-list-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }

  .hero-slider { height: 360px; }
  .hero-slide-content h1 { font-size: 26px; }
  .hero-slide-content p { font-size: 14px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-number { font-size: 32px; }

  .cards-grid,
  .cards-grid.cols-2,
  .cards-grid.cols-4 { grid-template-columns: 1fr; }

  .insurance-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-card { padding: 16px; }
  .contact-info-item { padding: 14px 0; }
  .contact-info-item svg { width: 24px; height: 24px; }
  .contact-info-item h4 { font-size: 15px; }
  .contact-info-item p { font-size: 13px; }
  .map-container { min-height: 250px; }
  .map-container iframe { min-height: 250px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nursing-grid { grid-template-columns: 1fr; }
  .disease-list-grid { grid-template-columns: 1fr; }

  .section { padding: 50px 0; }
  .section-header h2 { font-size: 24px; }

  .page-hero { padding: 40px 0; }
  .page-hero h1 { font-size: 26px; }

  .process-steps { flex-direction: column; gap: 0; align-items: flex-start; }
  .process-step { max-width: 100%; display: flex; flex-direction: row; text-align: left; gap: 16px; padding: 0 0 24px 0; position: relative; }
  .process-step::after { display: none; }
  .process-step::before { content: ''; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px; background: var(--gray); }
  .process-step:last-child::before { display: none; }
  .process-step:last-child { padding-bottom: 0; }
  .process-step-icon { margin: 0; flex-shrink: 0; }
  .process-step-icon svg { width: 22px; height: 22px; }
  .process-step-text { flex: 1; }
  .process-step h4 { font-size: 16px; margin-bottom: 4px; }
  .process-step p { font-size: 13px; }

  .qualifications-grid { grid-template-columns: 1fr; }

  .mobile-menu { right: -280px; }
}

@media (max-width: 480px) {
  .hero-slider { height: 300px; }
  .hero-slide-content h1 { font-size: 22px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 28px; }
  .navbar-inner { height: 60px; }
  .hero { margin-top: 60px; }
  .page-hero { margin-top: 60px; }
}