/* ============== THEME (Light only) ============== */
  :root{
    --bg: #f7fafc;          /* page background */
    --surface: #ffffff;     /* cards and panels */
    --text: #0f172a;        /* main text */
    --muted: #64748b;       /* secondary text */
    --border: #e5e7eb;      /* borders */
    --soft: #f1f5f9;        /* subtle fills */
    --accent: #b91c1c;      /* brand accent (CityCare red) */
    --accent-600: #9f1717;  /* darker accent */
    --success-bg:#ecfdf5;
    --success:#15803d;
    --shadow: 0 10px 28px rgba(2,6,23,0.06);
    --shadow-strong: 0 18px 42px rgba(2,6,23,0.12);
  }

  body { background: var(--bg); }

  /* Layout */
  .dept-layout{
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 16px 64px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
  }
  @media (max-width: 1024px){
    .dept-layout{ grid-template-columns: 1fr; }
  }

  .sr-only{
    position:absolute !important;
    width:1px; height:1px; overflow:hidden;
    clip: rect(1px,1px,1px,1px); white-space:nowrap;
  }

  /* ============== SIDEBAR ============== */
  .dept-aside{
    position: sticky; top: 84px; align-self: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 16px;
  }
  .dept-aside h2{
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 8px;
  }
  .dept-search{
    display:flex; align-items:center; gap:8px;
    background: var(--soft);
    border:1px solid var(--border);
    border-radius:12px;
    padding:8px 10px;
    margin-bottom:10px;
  }
  .dept-search input{
    border:none; outline:none; background:transparent;
    color:var(--text); width:100%; font-size:0.95rem;
  }
  .dept-list{
    max-height: calc(100vh - 240px);
    overflow:auto; padding-right:6px;
  }

  .dept-item{
    display:flex; gap:10px; align-items:center;
    padding:10px 10px; border-radius:12px;
    color:var(--text); text-decoration:none;
    border:1px solid transparent; background:transparent;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
  }
  .dept-item + .dept-item{ margin-top:6px; }
  .dept-item:hover{ background: var(--soft); border-color: var(--border); transform: translateY(-1px); }
  .dept-item.active{
    background: linear-gradient(135deg, var(--accent), var(--accent-600));
    color: #fff; border-color: transparent; box-shadow: var(--shadow-strong);
  }

  .dept-icon{
    width: 36px; height: 36px; border-radius: 10px;
    display:grid; place-items:center; flex-shrink:0;
    background:#fff; color: currentColor; border:1px solid var(--border);
  }
  .dept-item.active .dept-icon{
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.35);
  }

  .dept-meta{ display:grid; gap:2px; }
  .dept-name{ font-weight:600; font-size:0.95rem; }
  .dept-short{ font-size:0.82rem; color: var(--muted); }
  .dept-item.active .dept-short{ color: rgba(255,255,255,0.95); }

  /* ============== CONTENT ============== */
  .dept-content{ display:grid; gap:16px; }

  /* Hero */
  .dept-hero{
    border-radius: 18px; overflow:hidden;
    border:1px solid var(--border);
    box-shadow: var(--shadow-strong);
    background:
      radial-gradient(1200px 600px at -10% -40%, rgba(185,28,28,.08), transparent 60%),
      radial-gradient(900px 500px at 110% 120%, rgba(185,28,28,.06), transparent 60%),
      linear-gradient(180deg, var(--surface), var(--surface));
    padding: 24px 24px;
  }
  @media (min-width: 768px){ .dept-hero{ padding: 28px 30px; } }

  .dept-hero-top{
    display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  }

  .dept-identity{ display:flex; align-items:center; gap:14px; }
  .dept-hero-icon{
    width:56px; height:56px; border-radius:16px;
    display:grid; place-items:center; color:#fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-600));
    box-shadow: var(--shadow-strong);
  }
  .dept-title{ display:grid; gap:4px; }
  .dept-title h1{
    font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
    margin:0; color: var(--text);
  }
  .dept-slug{
    font-size:0.74rem; letter-spacing:0.18em; text-transform:uppercase; color:var(--muted);
  }

  .dept-badges{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
  .pill{
    display:inline-flex; align-items:center; gap:6px;
    padding:6px 10px; border-radius:999px; font-size:0.82rem;
    border:1px solid var(--border);
    background: var(--soft); color: var(--muted);
  }
  .pill.success{
    background: var(--success-bg); color: var(--success); border-color: transparent;
  }

  /* Cards grid */
  .cards{ display:grid; gap:16px; grid-template-columns:1fr; }
  @media (min-width: 900px){  }

  .card{
    background: var(--surface); border:1px solid var(--border);
    border-radius:16px; padding:18px; box-shadow: var(--shadow);
  }
  .card h3{
    font-size:0.95rem; letter-spacing:0.12em; text-transform:uppercase;
    color: var(--muted); margin:0 0 10px;
  }

  .prose{ color: var(--text); font-size:1rem; line-height:1.7; }
  .prose p{ margin:0 0 .8rem; }
  .prose ul{ padding-left:1.2rem; margin:0 0 .8rem; }
  .muted{ color: var(--muted); }

  /* Facts list */
  .facts{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
  .fact{
    display:grid; grid-template-columns:28px 1fr; gap:10px; align-items:start;
    padding:10px; border:1px dashed var(--border); border-radius:12px; background: var(--soft);
  }
  .fact i{ color: var(--muted); }

  /* Footer note */
  .dept-footnote{ color: var(--muted); font-size:0.86rem; padding:4px 2px; }

.dept-hero-short{
  margin:12px 2px 0;
  max-width:70ch;
}

.dept-subtitle-tab{
  font-size:.9rem;
  color:var(--accent);
  font-weight:600;
}

.dept-tabs-wrap{
  margin-top:18px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding-top:14px;
  border-top:1px solid var(--border);
}

.dept-tab{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  text-decoration:none;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  font-weight:600;
  transition:all .18s ease;
}

.dept-tab:hover{
  background:var(--soft);
  border-color:var(--border);
  transform:translateY(-1px);
  color:var(--text);
}

.dept-tab.active{
  background:linear-gradient(135deg, var(--accent), var(--accent-600));
  color:#fff;
  border-color:transparent;
  box-shadow:var(--shadow-strong);
}

.dept-tab.active i{
  color:#fff;
}

@media (max-width: 767.98px){
  .dept-tabs-wrap{
    gap:8px;
  }

  .dept-tab{
    width:100%;
    justify-content:flex-start;
  }
}
.dept-gallery-card{
  overflow:hidden;
}

.dept-carousel .carousel-inner{
  border-radius:16px;
  border:1px solid var(--border);
}

.dept-carousel .carousel-item img{
  width:100%;
  height:460px;
  object-fit:cover;
  display:block;
  background:#f1f5f9;
}

.dept-carousel .carousel-control-prev,
.dept-carousel .carousel-control-next{
  width:52px;
}

.dept-carousel .carousel-control-prev-icon,
.dept-carousel .carousel-control-next-icon{
  width:42px;
  height:42px;
  border-radius:999px;
  background-color:rgba(15,23,42,.45);
  background-size:50% 50%;
}

.dept-carousel .carousel-indicators [data-bs-target]{
  width:10px;
  height:10px;
  border-radius:999px;
  border:0;
  margin:0 5px;
  background-color:rgba(255,255,255,.75);
}

.dept-carousel .carousel-caption{
  left:20px;
  right:20px;
  bottom:20px;
  text-align:left;
}

.dept-carousel-caption{
  display:inline-block;
  background:rgba(15,23,42,.58);
  color:#fff;
  padding:10px 14px;
  border-radius:12px;
  font-size:.92rem;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

@media (max-width: 991.98px){
  .dept-carousel .carousel-item img{
    height:340px;
  }
}

@media (max-width: 575.98px){
  .dept-carousel .carousel-item img{
    height:240px;
  }

  .dept-carousel .carousel-caption{
    left:12px;
    right:12px;
    bottom:12px;
  }

  .dept-carousel-caption{
    font-size:.82rem;
    padding:8px 10px;
  }
}
.dept-item{
  margin-left: calc(var(--dept-level, 0) * 16px);
}

.dept-item.level-0{
  margin-left: 0;
}

.dept-level-group + .dept-level-group{
  margin-top: 16px;
}

.dept-level-title{
  margin-top: 18px;
  margin-bottom: 10px;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.dept-map-card{
  overflow: hidden;
}

.dept-map-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.dept-map-wrap{
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
}

.dept-map-frame{
  display:block;
  width:100%;
  min-height:420px;
  border:0;
}

@media (max-width: 767.98px){
  .dept-item{
    margin-left: calc(var(--dept-level, 0) * 10px);
  }

  .dept-map-frame{
    min-height:320px;
  }
}
