/* =========================================================
   PERSONA-PAGE.CSS — Department of Arts and Culture, Government of Meghalaya
   "Services for You" pages in personas/ (Artist, Researcher, Student …).
   Uses the DBIM colour tokens from style.css. The top banner and
   breadcrumb come from inner-page.css.

   1. Page wrapper
   2. Intro (persona image, "I am a", title, text)
   3. Service groups and cards
   4. Other services for you
   5. Responsive + reduced motion
   ========================================================= */

/* 1. PAGE WRAPPER */
.persona-page {
  padding: 4rem 0 5.6rem;
  background: var(--dbim-white);
}

/* 2. INTRO */
.ps-intro {
  display: flex;
  align-items: center;
  gap: 3.2rem;
  margin-bottom: 4rem;
  padding: 2.4rem;
  background: var(--dbim-section-bg, #fbf4f4);
  border: 1px solid var(--dbim-azureish-white);
  border-radius: 1.2rem;
}
.ps-intro-img {
  flex: 0 0 18rem;
  width: 18rem;
  height: 18rem;
  object-fit: contain;
  background: var(--dbim-section-bg-strong, #f3e1e1);
  border-radius: 50%;
}
.ps-kicker {
  margin: 0 0 .4rem;
  color: var(--dbim-powder-blue);
  font-size: var(--dbim-fs-p2);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ps-title {
  margin: 0 0 1rem;
  color: var(--dbim-wintergreen-dream);
  font-size: var(--dbim-fs-h1);
  font-weight: 700;
  line-height: 1.2;
}
.ps-intro-text {
  max-width: 64rem;
  margin: 0;
  color: var(--dbim-dark-text);
  font-size: var(--dbim-fs-p1);
  line-height: 1.6;
}

/* 3. SERVICE GROUPS AND CARDS */
.ps-group { margin-bottom: 4rem; }
.ps-group-title {
  position: relative;
  margin: 0 0 1.6rem;
  padding-left: 1.4rem;
  color: var(--dbim-wintergreen-dream);
  font-size: var(--dbim-fs-h2);
  font-weight: 700;
  line-height: 1.3;
}
.ps-group-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  bottom: .2em;
  width: .4rem;
  background: var(--dbim-wintergreen-dream);
  border-radius: .2rem;
}
.ps-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr));
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ps-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  min-height: 11rem;
  padding: 1.8rem 4.4rem 1.8rem 1.8rem;
  background: var(--dbim-white);
  border: 1px solid var(--dbim-azureish-white);
  border-left: 4px solid var(--dbim-wintergreen-dream);
  border-radius: .8rem;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
/* arrow at the right of each card */
.ps-card::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.8rem;
  width: .9rem;
  height: .9rem;
  border-top: 2px solid var(--dbim-powder-blue);
  border-right: 2px solid var(--dbim-powder-blue);
  transform: translateY(-50%) rotate(45deg);
  transition: right .2s ease;
}
.ps-card-title {
  margin: 0;
  color: var(--dbim-wintergreen-dream);
  font-size: var(--dbim-fs-p1) !important;
  font-weight: 700;
  line-height: 1.35;
}
.ps-card-title a { color: inherit; text-decoration: none; }
/* whole card is clickable; the link stays the accessible name */
.ps-card-title a::before { content: ""; position: absolute; inset: 0; border-radius: .8rem; }
.ps-card-text {
  margin: 0;
  color: #3D4043;
  font-size: var(--dbim-fs-p2);
  line-height: 1.45;
}
.ps-tag {
  align-self: flex-start;
  margin-top: auto;
  padding: .2rem .8rem;
  background: var(--dbim-section-bg-strong, #f3e1e1);
  border-radius: 99rem;
  color: var(--dbim-wintergreen-dream);
  font-size: var(--dbim-fs-small);
  font-weight: 700;
  letter-spacing: .03em;
}
.ps-card:hover {
  background: var(--dbim-surface-tint, #fdf8f8);
  border-color: var(--dbim-powder-blue);
  box-shadow: 0 4px 12px rgba(var(--dbim-shadow-rgb, 60, 10, 10), .12);
}
.ps-card:hover::after { right: 1.4rem; }
.ps-card:hover .ps-card-title a { text-decoration: underline; text-underline-offset: .2em; }
.ps-card:focus-within { outline: 3px solid var(--dbim-info-blue); outline-offset: 2px; }
.ps-card-title a:focus-visible { outline: none; }

/* 4. OTHER SERVICES FOR YOU */
.ps-others {
  margin-top: 4.8rem;
  padding-top: 3.2rem;
  border-top: 1px solid var(--dbim-azureish-white);
}
.ps-others ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ps-other {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 1.6rem 1rem;
  background: var(--dbim-white);
  border: 1px solid var(--dbim-azureish-white);
  border-radius: 1rem;
  color: var(--dbim-wintergreen-dream);
  font-size: var(--dbim-fs-p1);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ps-other img {
  width: 7.2rem;
  height: 7.2rem;
  object-fit: contain;
  background: var(--dbim-section-bg-strong, #f3e1e1);
  border-radius: 50%;
}
.ps-other:hover {
  border-color: var(--dbim-powder-blue);
  box-shadow: 0 4px 12px rgba(var(--dbim-shadow-rgb, 60, 10, 10), .12);
  color: var(--dbim-wintergreen-dream);
  text-decoration: underline;
  transform: translateY(-2px);
}
.ps-other:focus-visible { outline: 3px solid var(--dbim-info-blue); outline-offset: 2px; }

/* 5. RESPONSIVE + REDUCED MOTION */
@media (max-width: 767.98px) {
  .ps-intro { flex-direction: column; text-align: center; gap: 1.6rem; padding: 2rem 1.6rem; }
  .ps-intro-img { flex-basis: 14rem; width: 14rem; height: 14rem; }
  .ps-cards { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .persona-page { padding: 2.8rem 0 4rem; }
  .ps-others ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ps-card, .ps-card::after, .ps-other { transition: none; }
  .ps-other:hover { transform: none; }
}
