/* ============================================================================
   PRATHMESH CARDIAC INSTITUTE — EXTRA PAGE STYLES
   Only for the two new pages:
       /procedures   (.pci-proc)
       /contact-us   (.pci-contact)
   Loaded from those pages only, via $EXTRA_CSS. It adds nothing to the rest
   of the site, so it cannot affect any existing page.
   ============================================================================ */

:root{
  --pci-inv:#D92D3F;        /* invasive  — red  */
  --pci-non:#0E8A5F;        /* non-invasive — green */
}

/* ==========================================================================
   1.  THE SMALL "INVASIVE / NON-INVASIVE" BOX
       Used on every procedure card and in the explainer at the top.
   ========================================================================== */
.pci-page .proc-badge{
  display:inline-flex;align-items:center;gap:5px;
  padding:5px 10px;border-radius:7px;
  font-family:'Inter',sans-serif;
  font-size:11.5px;font-weight:800;letter-spacing:.3px;
  line-height:1;text-transform:uppercase;white-space:nowrap;
  border:1.5px solid transparent;
}
.pci-page.pci-hi .proc-badge{font-family:'Noto Sans Devanagari','Inter',sans-serif;text-transform:none;letter-spacing:0;font-size:12px;padding:6px 10px;}
.pci-page .proc-badge svg{width:11px;height:11px;flex-shrink:0;}
.pci-page .proc-badge.inv{background:#FDECEE;color:#A81A28;border-color:#F3C3C8;}
.pci-page .proc-badge.non{background:#E6F6EF;color:#0A6B49;border-color:#BCE5D4;}

/* on top of a card picture it needs to sit above the image and stay readable */
.pci-page .proc-pic .proc-badge{
  position:absolute;top:10px;left:10px;z-index:3;
  box-shadow:0 3px 10px rgba(2,32,74,.22);
}
.pci-page .proc-pic .proc-badge.inv{background:#fff;color:#B01F2D;border-color:#fff;}
.pci-page .proc-pic .proc-badge.non{background:#fff;color:#0A6B49;border-color:#fff;}

/* ==========================================================================
   2.  THE TWO EXPLAINER BOXES AT THE TOP OF /procedures
   ========================================================================== */
.pci-page .proc-explain{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px;}
.pci-page .proc-explain-box{
  border:1px solid var(--line,#E3E9F0);border-radius:16px;padding:20px 20px 18px;
  background:#fff;position:relative;
}
.pci-page .proc-explain-box.inv{border-top:4px solid var(--pci-inv);}
.pci-page .proc-explain-box.non{border-top:4px solid var(--pci-non);}
.pci-page .proc-explain-box h3{font-size:17px;margin:12px 0 8px;line-height:1.35;}
.pci-page .proc-explain-box p{font-size:14.5px;color:#4A5A6C;}
.pci-page .proc-explain-list{list-style:none;margin:12px 0 0;padding:0;}
.pci-page .proc-explain-list li{
  position:relative;padding-left:20px;font-size:13.8px;color:#4A5A6C;margin-bottom:7px;line-height:1.5;
}
.pci-page .proc-explain-list li::before{
  content:"";position:absolute;left:4px;top:8px;width:7px;height:7px;border-radius:50%;
  background:var(--teal,#00A6A6);
}

/* ==========================================================================
   3.  FILTER BAR  (Show all / Invasive / Non-Invasive)
   ========================================================================== */
.pci-page .proc-filter{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 6px;}
.pci-page .proc-filter .pf{
  display:inline-flex;align-items:center;gap:8px;cursor:pointer;
  font-family:inherit;font-size:13.5px;font-weight:700;color:#334155;
  background:#fff;border:1.5px solid var(--line,#E3E9F0);border-radius:99px;
  padding:9px 16px;line-height:1;transition:border-color .18s,background .18s,color .18s;
}
.pci-page .proc-filter .pf:hover{border-color:#0B6FA4;color:#0B6FA4;}
.pci-page .proc-filter .pf.on{background:#02204A;border-color:#02204A;color:#fff;}
.pci-page .proc-filter .pf .n{
  background:rgba(2,32,74,.08);color:inherit;border-radius:99px;
  padding:3px 8px;font-size:11.5px;font-weight:800;
}
.pci-page .proc-filter .pf.on .n{background:rgba(255,255,255,.2);}
.pci-page .proc-filter .pf .dot{width:9px;height:9px;border-radius:50%;flex-shrink:0;}
.pci-page .proc-filter .pf .dot.inv{background:var(--pci-inv);}
.pci-page .proc-filter .pf .dot.non{background:var(--pci-non);}

/* ==========================================================================
   4.  GROUPS AND THE CARD GRID
   ========================================================================== */
.pci-page .proc-group{margin-top:34px;}
.pci-page .proc-group[hidden]{display:none;}
.pci-page .proc-group-h{
  font-size:19px;line-height:1.35;padding-bottom:10px;margin-bottom:8px;
  border-bottom:2px solid var(--line,#E3E9F0);
}
.pci-page .proc-group-p{font-size:14.5px;color:#64748B;margin:0 0 18px;}

.pci-page .proc-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;}

.pci-page .proc-card{
  display:flex;flex-direction:column;overflow:hidden;
  background:#fff;border:1px solid var(--line,#E3E9F0);border-radius:16px;
  color:inherit;text-decoration:none;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.pci-page .proc-card[hidden]{display:none;}
.pci-page .proc-card:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 38px rgba(2,32,74,.13);
  border-color:#CBD9E8;
}

/* the picture area — .img-slot from the main stylesheet gives it the
   gradient + icon fallback when hero.jpg has not been uploaded yet */
.pci-page .proc-pic{aspect-ratio:4/3;border-radius:0;flex-shrink:0;}
.pci-page .proc-pic .fb span{font-size:12.5px;font-weight:700;max-width:80%;}
.pci-page .proc-card:hover .proc-pic img{transform:scale(1.04);}
.pci-page .proc-pic img{transition:transform .35s ease;}

.pci-page .proc-body{padding:16px 18px 18px;display:flex;flex-direction:column;flex:1;}
.pci-page .proc-name{font-size:16.5px;line-height:1.35;margin:0 0 8px;}
.pci-page .proc-card:hover .proc-name{color:#0B6FA4;}
.pci-page .proc-body p{font-size:14px;color:#5A6B7D;line-height:1.6;margin:0 0 14px;}
.pci-page .proc-body .more{
  margin-top:auto;display:inline-flex;align-items:center;gap:7px;
  font-size:13.5px;font-weight:700;color:#D92D3F;
}
.pci-page .proc-body .more svg{width:15px;height:15px;transition:transform .2s ease;}
.pci-page .proc-card:hover .more svg{transform:translateX(4px);}

/* count chip in the sidebar "Jump to a group" list */
.pci-page .toc a .c{
  margin-left:auto;background:#EEF4F9;color:#0B6FA4;border-radius:99px;
  padding:1px 8px;font-size:11px;font-weight:800;
}

/* ==========================================================================
   5.  CONTACT PAGE
   ========================================================================== */
.pci-page .ct-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px;}
.pci-page .ct-card{
  border:1px solid var(--line,#E3E9F0);border-radius:16px;padding:20px;background:#fff;
  display:flex;gap:14px;align-items:flex-start;
  transition:box-shadow .2s ease,border-color .2s ease;
}
.pci-page .ct-card:hover{box-shadow:0 14px 32px rgba(2,32,74,.1);border-color:#CBD9E8;}
.pci-page .ct-ic{
  width:44px;height:44px;border-radius:12px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#0B6FA4,#02204A);color:#fff;
}
.pci-page .ct-ic svg{width:20px;height:20px;}
.pci-page .ct-card h3{font-size:15.5px;margin:0 0 6px;line-height:1.35;}
.pci-page .ct-card p,.pci-page .ct-card a{font-size:14.5px;color:#4A5A6C;line-height:1.6;margin:0;}
.pci-page .ct-card a{display:block;font-weight:600;color:#0B6FA4;word-break:break-word;}
.pci-page .ct-card a:hover{text-decoration:underline;}
.pci-page .ct-card .muted{font-size:13px;color:#8392A5;margin-top:6px;}

/* contact details start right at the top of the column */
.pci-page .ct-first{padding-top:0;}
.pci-page .ct-first .ct-grid{margin-top:0;}

/* map */
.pci-page .ct-map{
  margin-top:24px;border:1px solid var(--line,#E3E9F0);border-radius:16px;overflow:hidden;
  box-shadow:0 14px 34px rgba(2,32,74,.1);
}
.pci-page .ct-map iframe{display:block;width:100%;height:420px;border:0;}
.pci-page .ct-map-bar{
  display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;
  padding:14px 18px;background:#F5F9FC;border-top:1px solid var(--line,#E3E9F0);
}
.pci-page .ct-map-bar b{font-family:'Poppins',sans-serif;color:#02204A;font-size:14.5px;}
.pci-page.pci-hi .ct-map-bar b{font-family:'Noto Sans Devanagari','Poppins',sans-serif;}
.pci-page .ct-map-bar span{display:block;font-size:13px;color:#64748B;font-weight:400;}

/* timings table */
.pci-page .ct-hours{list-style:none;margin:16px 0 0;padding:0;}
.pci-page .ct-hours li{
  display:flex;justify-content:space-between;gap:14px;align-items:baseline;
  padding:11px 0;border-bottom:1px dashed var(--line,#E3E9F0);font-size:14.5px;
}
.pci-page .ct-hours li:last-child{border-bottom:0;}
.pci-page .ct-hours .d{color:#334155;font-weight:600;}
.pci-page .ct-hours .t{color:#0B6FA4;font-weight:700;text-align:right;}
.pci-page .ct-hours .t.em{color:#D92D3F;}

/* social row */
.pci-page .ct-social{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;}
.pci-page .ct-social a{
  display:inline-flex;align-items:center;gap:8px;
  border:1.5px solid var(--line,#E3E9F0);border-radius:10px;padding:10px 14px;
  font-size:13.5px;font-weight:700;color:#334155;background:#fff;
  transition:border-color .18s,color .18s,background .18s;
}
.pci-page .ct-social a svg{width:16px;height:16px;}
.pci-page .ct-social a:hover{border-color:#02204A;color:#02204A;background:#F5F9FC;}
.pci-page .ct-social a.wa:hover{border-color:#1EA952;color:#128C3E;}

/* emergency strip */
.pci-page .ct-emg{
  margin-top:22px;border-radius:16px;padding:22px 24px;
  background:linear-gradient(135deg,#02204A,#0B6FA4);color:#fff;
  display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;
}
.pci-page .ct-emg h3{color:#fff;font-size:18px;margin:0 0 5px;}
.pci-page .ct-emg p{color:#C7DAEC;font-size:14px;margin:0;max-width:52ch;}
.pci-page .ct-emg .btn{flex-shrink:0;}

/* enquiry form (posts through the site's existing .js-book-form handler) */
.pci-page .ct-form{
  margin-top:20px;border:1px solid var(--line,#E3E9F0);border-radius:16px;
  padding:22px;background:#F8FBFD;position:relative;
}
.pci-page .ct-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.pci-page .ct-fld{margin-bottom:14px;}
.pci-page .ct-fld label{display:block;font-size:13px;font-weight:700;color:#334155;margin-bottom:6px;}
.pci-page .ct-fld input,
.pci-page .ct-fld select,
.pci-page .ct-fld textarea{
  width:100%;padding:12px 14px;border-radius:10px;border:1.5px solid #D6E0EA;
  background:#fff;color:#162536;font-family:inherit;font-size:14.5px;line-height:1.4;
  transition:border-color .18s,box-shadow .18s;
}
.pci-page .ct-fld textarea{resize:vertical;min-height:110px;}
.pci-page .ct-fld input:focus,
.pci-page .ct-fld select:focus,
.pci-page .ct-fld textarea:focus{outline:none;border-color:#0B6FA4;box-shadow:0 0 0 3px rgba(11,111,164,.14);}
.pci-page .ct-submit{width:100%;justify-content:center;}
.pci-page .ct-submit.busy{opacity:.6;pointer-events:none;}
.pci-page .ct-note{font-size:12.5px;color:#8392A5;margin-top:10px;text-align:center;}
.pci-page .form-msg{margin:0 0 12px;padding:10px 12px;border-radius:8px;font-size:14px;line-height:1.5;}
.pci-page .form-msg.ok{background:#E6F7F1;color:#0A6B4B;border:1px solid #B7E6D4;}
.pci-page .form-msg.err{background:#FDECEE;color:#A01726;border:1px solid #F6C7CD;}

/* ==========================================================================
   6.  RESPONSIVE
   ========================================================================== */
@media (max-width:1000px){
  .pci-page .proc-grid{gap:16px;}
}
@media (max-width:820px){
  .pci-page .proc-explain,
  .pci-page .ct-grid{grid-template-columns:1fr;}
}
@media (max-width:640px){
  .pci-page .proc-grid{grid-template-columns:1fr;}
  .pci-page .proc-group-h{font-size:17.5px;}
  .pci-page .proc-filter .pf{font-size:12.5px;padding:8px 13px;}
  .pci-page .ct-map iframe{height:320px;}
  .pci-page .ct-emg{flex-direction:column;align-items:flex-start;}
  .pci-page .ct-emg .btn{width:100%;}
  .pci-page .ct-row{grid-template-columns:1fr;gap:0;}
  .pci-page .ct-form{padding:16px;}
}

/* ==========================================================================
   7.  PHONES — get to the cards / contact details fast
       On a small screen the decorative parts of the hero push the useful
       content far down, so on these two pages only they are trimmed.
   ========================================================================== */
@media (max-width:640px){
  /* a tighter hero */
  .pci-proc.pci-page .hero,
  .pci-contact.pci-page .hero{padding:16px 18px 26px;}
  .pci-proc.pci-page .hero .pill,
  .pci-contact.pci-page .hero .pill,
  .pci-proc.pci-page .hero-facts,
  .pci-contact.pci-page .hero-facts{display:none;}
  .pci-proc.pci-page .langsw,
  .pci-contact.pci-page .langsw{margin-bottom:12px;}
  .pci-proc.pci-page .hero h1,
  .pci-contact.pci-page .hero h1{font-size:25px;line-height:1.25;}
  .pci-proc.pci-page .hero .sub,
  .pci-contact.pci-page .hero .sub{font-size:14.5px;margin-bottom:16px;}
  /* the two hero buttons share one row instead of stacking */
  .pci-proc.pci-page .hero-cta,
  .pci-contact.pci-page .hero-cta{gap:8px;flex-wrap:nowrap;}
  .pci-proc.pci-page .hero-cta .btn,
  .pci-contact.pci-page .hero-cta .btn{
    flex:1 1 0;min-width:0;padding:11px 8px;font-size:12.5px;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  .pci-proc.pci-page .hero-cta .btn svg,
  .pci-contact.pci-page .hero-cta .btn svg{flex-shrink:0;}

  /* less air before the first card */
  .pci-page .wrap{padding:22px 20px 20px;}
  .pci-page .proc-filter{margin-top:0;}
  .pci-page .proc-group{margin-top:22px;}
  .pci-page .proc-group:first-of-type{margin-top:16px;}
  .pci-page .proc-group-p{display:none;}      /* the heading alone is enough on a phone */
}

/* Desktop: these two pages lead with the cards / details, so the hero and the
   gap under it are tighter than on the long article pages. */
@media (min-width:641px){
  .pci-proc.pci-page .hero,
  .pci-contact.pci-page .hero{padding:26px 20px 34px;}
  .pci-proc.pci-page .hero-facts,
  .pci-contact.pci-page .hero-facts{margin-top:22px;padding-top:18px;}
  .pci-proc.pci-page .wrap,
  .pci-contact.pci-page .wrap{padding-top:32px;}
  .pci-page .proc-filter{margin-top:0;}
  .pci-page .proc-group:first-of-type{margin-top:24px;}
}

/* ==========================================================================
   8.  GALLERY PAGE
   ========================================================================== */
.pci-page .wrap-wide{grid-template-columns:minmax(0,1fr);}

/* category tabs */
.pci-page .gal-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:22px;}
.pci-page .gal-tabs .gt{
  display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-family:inherit;
  font-size:13.5px;font-weight:700;color:#334155;background:#fff;
  border:1.5px solid var(--line,#E3E9F0);border-radius:99px;padding:9px 16px;line-height:1;
  transition:border-color .18s,background .18s,color .18s;
}
.pci-page .gal-tabs .gt:hover{border-color:#0B6FA4;color:#0B6FA4;}
.pci-page .gal-tabs .gt.on{background:#02204A;border-color:#02204A;color:#fff;}
.pci-page .gal-tabs .gt .n{background:rgba(2,32,74,.08);border-radius:99px;padding:3px 8px;font-size:11.5px;font-weight:800;}
.pci-page .gal-tabs .gt.on .n{background:rgba(255,255,255,.2);}

/* the grid of photos */
.pci-page .gal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.pci-page .gal-item{
  position:relative;margin:0;cursor:zoom-in;overflow:hidden;border-radius:14px;
  border:1px solid var(--line,#E3E9F0);background:#EEF4F9;
  aspect-ratio:4/3;transition:transform .2s ease,box-shadow .2s ease;
}
.pci-page .gal-item[hidden]{display:none;}
.pci-page .gal-item:hover{transform:translateY(-3px);box-shadow:0 18px 38px rgba(2,32,74,.16);}
.pci-page .gal-item:focus-visible{outline:3px solid #0B6FA4;outline-offset:2px;}
.pci-page .gal-item img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease;}
.pci-page .gal-item:hover img{transform:scale(1.05);}
/* portraits: keep the face in frame when the 4:3 crop is applied */
.pci-page .gal-item[data-cat="team"] img{object-position:center 12%;}
.pci-page .gal-item figcaption{
  position:absolute;left:0;right:0;bottom:0;padding:26px 14px 12px;color:#fff;
  background:linear-gradient(180deg,rgba(2,32,74,0) 0%,rgba(2,32,74,.85) 70%);
}
.pci-page .gal-cat{
  display:inline-block;font-size:10.5px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;
  background:rgba(255,255,255,.22);border-radius:5px;padding:3px 7px;margin-bottom:5px;
}
.pci-page.pci-hi .gal-cat{text-transform:none;letter-spacing:0;font-size:11px;}
.pci-page .gal-cap{display:block;font-size:13.5px;font-weight:600;line-height:1.4;}
.pci-page .gal-zoom{
  position:absolute;top:10px;right:10px;width:32px;height:32px;border-radius:50%;
  background:rgba(255,255,255,.92);color:#02204A;
  display:flex;align-items:center;justify-content:center;
  opacity:0;transform:scale(.8);transition:opacity .2s,transform .2s;
}
.pci-page .gal-zoom svg{width:16px;height:16px;}
.pci-page .gal-item:hover .gal-zoom{opacity:1;transform:scale(1);}
.pci-page .gal-empty{text-align:center;color:#64748B;padding:40px 0;font-size:15px;}

/* full-size viewer */
.pci-page .gal-light{
  position:fixed;inset:0;z-index:4000;display:none;
  align-items:center;justify-content:center;padding:40px 20px;
  background:rgba(2,16,34,.94);
}
.pci-page .gal-light.on{display:flex;}
.pci-page .gal-stage{margin:0;max-width:1100px;width:100%;text-align:center;}
.pci-page .gal-stage img{
  max-width:100%;max-height:78vh;margin:0 auto;border-radius:10px;
  box-shadow:0 30px 70px rgba(0,0,0,.6);
}
.pci-page .gal-stage figcaption{color:#DCE8F5;font-size:14.5px;margin-top:16px;line-height:1.5;}
.pci-page .gal-x,.pci-page .gal-nav{
  position:absolute;border:0;cursor:pointer;color:#fff;background:rgba(255,255,255,.14);
  border-radius:50%;display:flex;align-items:center;justify-content:center;
  transition:background .18s;
}
.pci-page .gal-x:hover,.pci-page .gal-nav:hover{background:rgba(255,255,255,.3);}
.pci-page .gal-x{top:18px;right:18px;width:44px;height:44px;}
.pci-page .gal-x svg{width:22px;height:22px;}
.pci-page .gal-nav{top:50%;transform:translateY(-50%);width:50px;height:50px;}
.pci-page .gal-nav svg{width:24px;height:24px;}
.pci-page .gal-nav.prev{left:16px;}
.pci-page .gal-nav.next{right:16px;}

@media (max-width:900px){
  .pci-page .gal-grid{grid-template-columns:1fr 1fr;gap:14px;}
}
@media (max-width:560px){
  .pci-page .gal-grid{grid-template-columns:1fr;gap:14px;}
  .pci-page .gal-tabs .gt{font-size:12.5px;padding:8px 13px;}
  .pci-page .gal-light{padding:16px 8px;}
  .pci-page .gal-nav{width:40px;height:40px;}
  .pci-page .gal-nav.prev{left:6px;}
  .pci-page .gal-nav.next{right:6px;}
  .pci-page .gal-x{top:10px;right:10px;width:38px;height:38px;}
  .pci-gallery.pci-page .hero{padding:16px 18px 26px;}
  .pci-gallery.pci-page .hero .pill,
  .pci-gallery.pci-page .hero-facts{display:none;}
  .pci-gallery.pci-page .hero h1{font-size:25px;line-height:1.25;}
  .pci-gallery.pci-page .hero-cta{gap:8px;flex-wrap:nowrap;}
  .pci-gallery.pci-page .hero-cta .btn{
    flex:1 1 0;min-width:0;padding:11px 8px;font-size:12.5px;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  .pci-gallery.pci-page .hero-cta .btn svg{flex-shrink:0;}
}
