/* Department marketing layout — Neurology first, reusable for other depts */
:root {
  --dm-navy: #012d3a;
  --dm-teal: #1d7380;
  --dm-red: #c72024;
  --dm-line: #e5e7eb;
  --dm-soft: #f4f8f9;
}

.dm-hero {
  background:
    linear-gradient(105deg, rgba(1, 45, 58, 0.92) 0%, rgba(29, 115, 128, 0.78) 55%, rgba(1, 45, 58, 0.55) 100%),
    url("../images/neuro.jpg") center / cover no-repeat;
  color: #fff;
  padding: 56px 0 48px;
}
.dm-hero .eyebrow {
  color: #9ad4dc;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 10px;
}
.dm-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin: 0 0 12px;
  color: #fff;
  max-width: 16ch;
}
.dm-hero h1 span { color: #ffd7d8; }
.dm-hero .lead {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.55;
  color: #e8eef0;
  margin: 0 0 22px;
}
.dm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dm-btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none !important;
  font-size: 14px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.dm-btn-primary { background: var(--dm-red); color: #fff !important; }
.dm-btn-ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.dm-layout {
  padding: 36px 0 20px;
  background: #fff;
}
.dm-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}
.dm-side {
  position: sticky;
  top: 16px;
  border: 1px solid var(--dm-line);
  background: #fff;
}
.dm-side a {
  display: block;
  padding: 12px 14px;
  color: var(--dm-navy);
  text-decoration: none !important;
  border-bottom: 1px solid var(--dm-line);
  font-size: 14px;
  font-weight: 500;
}
.dm-side a:last-child { border-bottom: 0; }
.dm-side a:hover,
.dm-side a.on {
  background: #e8f5f4;
  color: var(--dm-teal);
}
.dm-side a::before {
  content: "›";
  color: var(--dm-teal);
  margin-right: 8px;
  font-weight: 700;
}

.dm-main .kicker {
  font-size: 13px;
  color: #666;
  margin: 0 0 4px;
}
.dm-main h2 {
  color: var(--dm-red);
  font-size: clamp(26px, 3vw, 34px);
  margin: 0 0 16px;
}
.dm-main p {
  color: #333;
  line-height: 1.65;
  margin: 0 0 14px;
  font-size: 15px;
}
.dm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 8px;
}
.dm-chips span {
  border: 1px solid #cfe4e7;
  background: var(--dm-soft);
  color: var(--dm-navy);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
}
.dm-points {
  margin: 8px 0 0;
  padding-left: 18px;
}
.dm-points li {
  margin-bottom: 8px;
  color: #333;
  line-height: 1.5;
}

.dm-doctors {
  background: var(--dm-soft);
  padding: 40px 0 48px;
  border-top: 1px solid var(--dm-line);
}
.dm-doctors .section-title {
  text-align: center;
  margin: 0 0 8px;
  color: var(--dm-navy);
  font-size: 28px;
}
.dm-doctors .section-title strong { color: var(--dm-red); }
.dm-doctors .section-sub {
  text-align: center;
  color: #666;
  margin: 0 0 28px;
  font-size: 14px;
}
.dm-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  justify-content: center;
  gap: 20px;
}
.dm-doc-card {
  background: #fff;
  border: 1px solid var(--dm-line);
  padding: 18px 16px 20px;
  text-align: center;
}
.dm-doc-photo {
  width: 148px;
  height: 148px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #9ad4dc;
  margin: 0 auto 14px;
  display: block;
  background: #dce9eb;
}
.dm-doc-avatar {
  width: 148px;
  height: 148px;
  border-radius: 8px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1d7380, #012d3a);
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  border: 2px solid #9ad4dc;
}
.dm-doc-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--dm-teal);
}
.dm-doc-card .role {
  font-size: 13px;
  color: #555;
  margin: 0 0 14px;
  min-height: 36px;
}
.dm-doc-card .dm-btn {
  width: 100%;
  text-align: center;
}

/* Doctor profile */
.dm-profile {
  padding: 36px 0 56px;
  background: #fff;
}
.dm-profile-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}
.dm-profile-side {
  text-align: center;
}
.dm-profile-side .dm-doc-photo,
.dm-profile-side .dm-doc-avatar {
  width: 100%;
  max-width: 260px;
  height: auto;
  aspect-ratio: 1;
}
.dm-profile-side .dm-btn {
  width: 100%;
  margin-top: 12px;
}
.dm-profile-main h1 {
  color: var(--dm-red);
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 6px;
}
.dm-profile-main .role {
  color: var(--dm-navy);
  font-weight: 700;
  margin: 0 0 18px;
}
.dm-hours-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 22px;
}
.dm-hours {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 13px;
}
.dm-hours th {
  background: var(--dm-navy);
  color: #fff;
  padding: 10px 8px;
  font-weight: 600;
}
.dm-hours td {
  border: 1px solid var(--dm-line);
  padding: 10px 8px;
  text-align: center;
  color: #333;
}
.dm-profile-main h2 {
  color: var(--dm-navy);
  font-size: 18px;
  margin: 22px 0 8px;
  border-bottom: 1px solid var(--dm-line);
  padding-bottom: 6px;
}
.dm-profile-main p,
.dm-profile-main li {
  color: #333;
  line-height: 1.6;
  font-size: 15px;
}
.dm-profile-main ul { padding-left: 18px; margin: 0 0 8px; }

/* Home featured departments strip */
.home-dept-strip {
  background: #fff;
  padding: 28px 0 8px;
  border-bottom: 1px solid var(--dm-line);
}
.home-dept-strip .eyebrow {
  color: var(--dm-teal);
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 6px;
}
.home-dept-strip h2 {
  color: var(--dm-navy);
  font-size: 26px;
  margin: 0 0 8px;
}
.home-dept-strip > .container > p {
  max-width: 640px;
  color: #555;
  margin: 0 0 20px;
  line-height: 1.55;
}
.home-dept-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 8px;
}
.home-dept-card {
  border: 1px solid var(--dm-line);
  padding: 18px 16px;
  background: var(--dm-soft);
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.home-dept-card:hover {
  border-color: var(--dm-teal);
  transform: translateY(-2px);
}
.home-dept-card.featured {
  background: linear-gradient(160deg, #012d3a, #1d7380);
  color: #fff;
  border-color: transparent;
}
.home-dept-card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--dm-teal);
  margin-bottom: 8px;
}
.home-dept-card.featured .tag { color: #9ad4dc; }
.home-dept-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--dm-navy);
}
.home-dept-card.featured h3 { color: #fff; }
.home-dept-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}
.home-dept-card.featured p { color: #e8eef0; }
.home-dept-card .go {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  font-size: 13px;
  color: var(--dm-red);
}
.home-dept-card.featured .go { color: #ffd7d8; }

@media (max-width: 900px) {
  .dm-grid,
  .dm-profile-grid { grid-template-columns: 1fr; }
  .dm-side { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .home-dept-cards { grid-template-columns: 1fr; }
  .dm-hero { padding: 40px 0 36px; }
}
@media (max-width: 560px) {
  .dm-side { grid-template-columns: 1fr; }
}
