
/* V67 — article and gallery directories aligned with the doctors page */
.content-directory .doctor-directory-header{margin-bottom:14px}
.content-grid{align-items:stretch}
.content-card{
  position:relative;
  min-width:0;
  overflow:hidden;
  border:1px solid rgba(220,199,255,.28);
  border-radius:27px;
  background:
    radial-gradient(circle at 18% 5%,rgba(255,255,255,.16),transparent 33%),
    linear-gradient(160deg,rgba(57,33,108,.94),rgba(18,10,43,.96));
  box-shadow:0 18px 42px rgba(4,2,19,.28),inset 0 1px 0 rgba(255,255,255,.19);
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
  display:flex;
  flex-direction:column;
}
.content-card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  background:linear-gradient(135deg,rgba(255,255,255,.09),transparent 38%,rgba(122,91,214,.08));
}
.content-card:hover{
  transform:translateY(-4px);
  border-color:rgba(255,222,138,.54);
  box-shadow:0 24px 52px rgba(4,2,19,.34),0 0 0 1px rgba(255,221,133,.07),inset 0 1px 0 rgba(255,255,255,.24);
}
.content-card-media{
  position:relative;
  aspect-ratio:1.48/1;
  overflow:hidden;
  background:rgba(255,255,255,.05);
}
.content-card-media::after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:44%;
  background:linear-gradient(to top,rgba(13,7,35,.76),transparent);
  pointer-events:none;
}
.content-card-image{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .45s ease,filter .35s ease;
}
.content-card:hover .content-card-image{transform:scale(1.035);filter:saturate(1.06) contrast(1.03)}
.content-card-body{
  position:relative;
  z-index:1;
  display:flex;
  flex:1;
  flex-direction:column;
  min-width:0;
  padding:17px 18px 18px;
}
.content-card-title{
  margin:0 0 9px;
  color:#fff;
  font:900 17px/1.45 Inter,"Segoe UI",Tahoma,Arial,sans-serif;
  letter-spacing:-.014em;
}
.content-card-text{
  margin:0;
  color:rgba(239,232,255,.76);
  font:600 12px/1.75 Inter,"Segoe UI",Tahoma,Arial,sans-serif;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}
.content-card-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:auto;
  padding-top:15px;
  color:#e8dcff;
  font:750 10.5px/1.4 Inter,"Segoe UI",Tahoma,Arial,sans-serif;
}
.content-card-source{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.content-card-action{
  flex:none;
  min-width:92px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 13px;
  border:1px solid rgba(255,255,255,.34);
  border-radius:12px;
  background:linear-gradient(145deg,rgba(255,211,93,.28),rgba(153,113,232,.22));
  color:#fff;
  text-decoration:none;
  font:850 11px/1 Inter,"Segoe UI",Tahoma,Arial,sans-serif;
  cursor:pointer;
}
.content-card-action:hover{background:linear-gradient(145deg,rgba(255,211,93,.38),rgba(153,113,232,.30))}
.content-directory.is-fa .doctor-directory-header,
.content-directory.is-fa .content-card-body{direction:rtl}
.content-directory.is-fa .doctor-directory-heading,
.content-directory.is-fa .content-card-body{text-align:right}
.content-directory.is-fa .doctor-search{direction:rtl}
.content-directory.is-fa .content-card-meta{direction:rtl}

.gallery-card .content-card-media{aspect-ratio:1.3/1}
.gallery-card .content-card-text{-webkit-line-clamp:2}
.gallery-card .content-card-meta{justify-content:flex-end}
.gallery-card .content-card-action{min-width:100px}

.content-modal{
  width:min(880px,calc(100vw - 30px));
  max-height:min(88vh,900px);
  padding:0;
  border:1px solid rgba(231,210,255,.38);
  border-radius:28px;
  color:#fff;
  background:linear-gradient(160deg,rgba(35,18,72,.985),rgba(12,7,30,.99));
  box-shadow:0 30px 90px rgba(0,0,0,.55);
  overflow:hidden;
}
.content-modal::backdrop{background:rgba(5,2,16,.72);backdrop-filter:blur(8px)}
.content-modal-shell{display:flex;flex-direction:column;max-height:88vh}
.content-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:15px 18px;
  border-bottom:1px solid rgba(255,255,255,.13);
}
.content-modal-head h2{margin:0;font:900 clamp(19px,2.3vw,30px)/1.35 Inter,"Segoe UI",Tahoma,Arial,sans-serif}
.content-modal-close{
  width:38px;height:38px;border:1px solid rgba(255,255,255,.23);border-radius:50%;
  background:rgba(255,255,255,.08);color:#fff;font-size:25px;cursor:pointer
}
.content-modal-scroll{overflow:auto;padding:0 20px 24px}
.content-modal-image{
  width:100%;
  max-height:480px;
  object-fit:cover;
  border-radius:0 0 22px 22px;
  background:rgba(255,255,255,.05);
}
.content-modal-copy{padding-top:18px;color:#f0e9ff;font:600 14px/1.95 Inter,"Segoe UI",Tahoma,Arial,sans-serif;white-space:pre-wrap}
.content-modal-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:18px;color:#e5d8ff;font-size:12px}
.content-modal-source{color:#ffe19a;font-weight:800;text-decoration:none}
.content-modal.is-fa{direction:rtl;text-align:right}

@media(max-width:1240px){
  .content-card-title{font-size:16px}
  .content-card-body{padding:15px 16px 16px}
}
@media(max-width:620px){
  .content-card{border-radius:23px}
  .content-card-media{aspect-ratio:1.55/1}
  .gallery-card .content-card-media{aspect-ratio:1.45/1}
  .content-modal-scroll{padding-inline:14px}
}
