.masters-program-card{
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.masters-program-card:hover{
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
/* Clear, accessible focus style for keyboard users */
.masters-program-card a:focus,
.masters-program-card a:focus-visible{
  outline: 3px solid rgba(0, 85, 140, 0.35);
  outline-offset: 3px;
  border-radius: 6px;
}
/* Make cards behave consistently and fill the grid cell height */
.masters-program-card{
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Keep descriptions from crowding the title */
.masters-program-desc{
  margin-top: 0;
}

/* Optional: a little more breathing room under titles */
.masters-program-title{
  margin-bottom: 10px;
}
/* Add a gentle CTA after the title link */
.masters-program-title a::after{
  content: " \2192";
  font-weight: 600;
}
.masters-program-card{
  cursor: default;
}

.masters-program-card:hover{
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}
.masters-program-card{
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.masters-program-card:hover{
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.masters-program-controls{
  margin: 0 0 10px;
}

.masters-search{
  width: 100%;
  max-width: 520px;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
}

.masters-count{
  margin: 0 0 18px;
  font-size: 14px;
  color: #555;
}

.visually-hidden{
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
/* Make the entire card clickable */
.masters-program-card{
  position: relative;
}

.masters-program-card .card-link{
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Keep visible links above the overlay */
.masters-program-card a:not(.card-link){
  position: relative;
  z-index: 2;
}

/* Cursor feedback */
.masters-program-card{
  cursor: pointer;
}
/* Entire card clickable (overlay link pattern) */
.masters-program-card{
  position: relative;
  cursor: pointer;
}

.masters-program-card .card-link{
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Keep the visible title link above the overlay */
.masters-program-card a:not(.card-link){
  position: relative;
  z-index: 2;
}
/* Make whole card clickable (overlay link) */
.masters-program-card{
  position: relative;
  cursor: pointer;
}

.masters-program-card .card-link{
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Keep visible links above overlay */
.masters-program-card a:not(.card-link){
  position: relative;
  z-index: 2;
}
/* Whole card clickable (overlay link created by JS) */
.masters-program-card{
  position: relative;
  cursor: pointer;
}

.masters-program-card .card-link{
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Keep the visible title link above the overlay */
.masters-program-card .masters-program-title a{
  position: relative;
  z-index: 2;
}
.masters-program-intro{
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.4;
}
/* Department card directory */
.dept-directory { margin: 0 0 24px; }

.dept-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

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

.dept-card{
  position: relative;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 14px 14px 12px;
  background: #fff;
}

.dept-card a.dept-card-link{
  position: absolute;
  inset: 0;
  z-index: 1;
}

.dept-card h3{
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.2;
}

.dept-meta{
  font-size: 14px;
  opacity: .8;
}

/* Optional: subtle hover */
.dept-card:hover{
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

/* Make sure real text is above overlay link */
.dept-card *{ position: relative; z-index: 2; }
