:root {
  --primary: #159EEC;
  --primary-dark: #038388;
  --accent: #ff0000;
  --surface: #ffffff;
  --surface-soft: #f4f8fc;
  --text: #193049;
  --muted: #5f6d7a;
}
main {
    padding: 0px 0;
    min-height: calc(100vh - 300px);
}
.departments-page {
  background: var(--surface-soft);
  color: var(--text);
}

.departments-hero-section {
  padding: 80px 0 60px;
  background: radial-gradient(circle at top left, rgba(21, 158, 236, 0.14), transparent 28%), linear-gradient(180deg, #f4f8fc 0%, #ffffff 100%);
}

.departments-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 38px;
}

.hero-copy-block {
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #dbeeff;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.departments-hero-section h1 {
  font-size: clamp(2.8rem, 4vw, 3.8rem);
  line-height: 1.02;
  margin-bottom: 24px;
}

.departments-hero-section p {
  max-width: 700px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 30px;
}

.hero-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}

.hero-feature-list div {
  background: var(--surface);
  border: 1px solid rgba(21, 158, 236, 0.18);
  border-radius: 18px;
  padding: 16px 18px;
  font-weight: 600;
  color: var(--text);
}

.hero-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-visual-block {
  display: grid;
  gap: 24px;
}

.hero-highlight-card {
  background: var(--surface);
  border: 1px solid rgba(21, 158, 236, 0.12);
  border-radius: 28px;
  padding: 34px 30px;
  box-shadow: 0 26px 55px rgba(25, 48, 73, 0.08);
}

.hero-highlight-card span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--primary-dark);
  font-weight: 700;
}

.hero-highlight-card h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  line-height: 1.35;
}

.hero-highlight-card p {
  color: var(--muted);
  line-height: 1.9;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hero-stats-grid div {
  background: rgba(21, 158, 236, 0.08);
  border-radius: 20px;
  padding: 22px 18px;
  text-align: center;
}

.hero-stats-grid strong {
  display: block;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.hero-stats-grid span {
  color: var(--muted);
  font-weight: 600;
}

.departments-list-section {
  padding: 80px 0 40px;
}

.section-heading-block {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 42px;
}

.section-title-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(21, 158, 236, 0.12);
color: #033a77;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.section-heading-block h2 {
  font-size: clamp(2rem, 2.6vw, 3rem);
  margin-bottom: 18px;
  line-height: 1.12;
}

.section-heading-block p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.department-card {
  background: var(--surface);
  border: 1px solid rgba(21, 158, 236, 0.12);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 16px 38px rgba(25, 48, 73, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.department-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 52px rgba(25, 48, 73, 0.12);
}

.department-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(21, 158, 236, 0.14);
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.department-card h3 {
  font-size: 1.28rem;
  margin-bottom: 10px;
}

.department-subtitle {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 18px;
  line-height: 1.7;
}

.department-card ul {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
  padding-left: 0;
}

.department-card ul li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.7;
}

.department-card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--primary);
  font-size: 1.2rem;
  line-height: 0;
}

.department-note {
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.6;
}

.departments-why-section {
  padding: 70px 0 50px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.why-copy-block {
  display: grid;
  gap: 24px;
}

.why-copy-block h2 {
  font-size: clamp(2rem, 2.45vw, 2.8rem);
  margin-bottom: 16px;
}

.why-copy-block p {
  color: var(--muted);
  line-height: 1.8;
}

.why-benefits-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.why-benefits-list li {
  position: relative;
  padding-left: 26px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.8;
}

.why-benefits-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--primary);
}

.facility-feature-card {
  background: var(--surface);
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 24px 60px rgba(25, 48, 73, 0.08);
  border: 1px solid rgba(21, 158, 236, 0.12);
}

.facility-feature-card h3 {
  font-size: 1.55rem;
  margin-bottom: 20px;
}

.facility-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  padding: 16px 18px;
  border-radius: 18px;
  background: #f7fbff;
  border: 1px solid rgba(21, 158, 236, 0.12);
  margin-bottom: 12px;
}

.departments-appointment-section {
  padding: 70px 0;
}

.appointment-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 30px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #159EEC 0%, #038388 100%);
  color: #ffffff;
  padding: 36px;
}

.appointment-copy h2 {
  font-size: clamp(2rem, 2.2vw, 2.6rem);
  margin-bottom: 16px;
}

.appointment-copy p {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.8;
  max-width: 560px;
}

.appointment-details {
  display: grid;
  gap: 18px;
}

.appointment-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 18px 20px;
}

.appointment-item strong {
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

.appointment-item span {
  color: #f0f7ff;
}

.departments-emergency-section {
  padding: 50px 0;
  background: #fff5f5;
}

.emergency-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 32px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 22px 50px rgba(25, 48, 73, 0.08);
  border: 1px solid rgba(255, 0, 0, 0.08);
   text-align: center;
   flex-direction: column;
}

.emergency-copy span {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--accent);
}

.emergency-copy h2 {
  font-size: 20px;
  line-height: 1.2;
  color: var(--text);
}

.emergency-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.departments-contact-section {
  padding: 70px 0 100px;
}

.contact-section-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}

.contact-header {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(21, 158, 236, 0.14), rgba(3, 131, 136, 0.08));
  border-radius: 28px;
  padding: 32px 34px;
}

.contact-header h2 {
  margin: 16px 0 14px;
  font-size: clamp(2rem, 2.2vw, 2.6rem);
  line-height: 1.16;
}

.contact-header p {
  color: var(--muted);
  line-height: 1.75;
  max-width: 760px;
}

.contact-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(25, 48, 73, 0.08);
  border: 1px solid rgba(21, 158, 236, 0.12);
}

.contact-card-primary {
  border-color: rgba(21, 158, 236, 0.25);
}

.contact-card-highlight {
  border-color: rgba(255, 0, 0, 0.18);
}

.contact-card-secondary {
  background: #f7fbff;
}

.contact-card h3 {
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.contact-card p,
.contact-card a {
  color: var(--muted);
  line-height: 1.8;
}

.contact-card a {
  color: var(--text);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 14px 35px rgba(21, 158, 236, 0.22);
}

.btn-secondary {
  color: var(--primary-dark);
  background: #ffffff;
  border: 1px solid rgba(21, 158, 236, 0.18);
}

@media (max-width: 1140px) {
  .departments-hero-grid,
  .why-grid,
  .appointment-panel,
  .contact-section-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .departments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-benefits-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .departments-hero-section {
    padding: 60px 0 40px;
  }
.hero-badge {
    display: inline-flex
;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #dbeeff;
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 13px;
}
  .hero-feature-list,
  .hero-action-group,
  .hero-stats-grid,
  .departments-grid,
  .contact-section-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats-grid div,
  .department-card,
  .facility-feature-card,
  .emergency-panel,
  .appointment-panel,
  .contact-card {
    padding: 22px;
  }

  .departments-hero-section h1 {
    font-size: 1.3rem;
  }
.departments-hero-section p {
    max-width: 700px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.85;
    margin-bottom: 30px;
    text-align: justify;
}
.hero-action-group {
    display: flex
;
    flex-wrap: nowrap;
    gap: 7px;
}
.btn {
    display: inline-flex
;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    font-size: 12px;
}
  .department-card h3,
  .contact-card h3,
  .contact-header h2,
  .hero-highlight-card h2 {
    font-size: 1.1rem;
  }

  .appointment-copy h2 {
    font-size: 1.8rem;
  }

  .appointment-details {
    gap: 14px;
  }
  .section-heading-block h2 {
    font-size: clamp(1.2rem, 2.6vw, 3rem);
    margin-bottom: 19px;
    line-height: 1.19;
}
.section-heading-block p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 1rem;
    text-align: justify;
}
.why-copy-block h2 {
    font-size: clamp(1.2rem, 2.45vw, 2.8rem);
    margin-bottom: -9px;
  
}
}
