/* Before & After grouped by procedure + life-like patient review cards + centred buttons. */

/* ---------- Before & After: procedure navigation ---------- */
.procedure-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;max-width:1100px;margin:8px auto 34px}
.procedure-nav .procedure-chip{box-sizing:border-box;width:100%!important;justify-self:stretch;margin:0!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:64px;padding:10px 12px;text-align:center;text-decoration:none;line-height:1.15;font-weight:700;border-radius:14px}
.procedure-chip span{font-size:15px;letter-spacing:.01em}
.procedure-chip small{font-size:12px;opacity:.75;font-weight:600}
.procedure-group{scroll-margin-top:96px;margin:0 auto 44px;max-width:1100px}
.procedure-head{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;margin:0 0 20px}
.procedure-head h2{font-size:clamp(26px,5vw,36px);line-height:1.15;margin:0}
.procedure-head h2::after{content:"";display:block;width:64px;height:3px;margin:12px auto 0;border-radius:3px;background:linear-gradient(90deg,transparent,#7feaf4,transparent)}
.procedure-head span{font-size:14px;letter-spacing:.12em;text-transform:uppercase;color:#a9d3df}
.procedure-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.procedure-grid .content-image{display:block;width:100%;padding:0;border:0;background:none;border-radius:14px;overflow:hidden;box-shadow:0 10px 26px rgba(0,0,0,.35),0 0 0 1px rgba(127,234,244,.22)}
.procedure-grid .content-image img{display:block;width:100%;height:auto;object-fit:contain}
.procedure-cta{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px 18px;margin:12px auto 24px}

/* ---------- Patient review cards ---------- */
html body .written-review{position:relative;display:flex;flex-direction:column;gap:0;padding:22px 22px 20px!important;border-radius:20px;border:1px solid rgba(127,234,244,.28);background:linear-gradient(160deg,rgba(24,86,112,.92) 0%,rgba(10,45,63,.96) 100%);color:#eaf8fb;box-shadow:0 14px 34px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.12);overflow:hidden}
html body .written-review::before{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:linear-gradient(90deg,#f5b72f,#ffe18a,#f5b72f)}
.review-top{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.review-avatar{flex:0 0 46px;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;font-size:21px;font-weight:800;color:#06303f;background:linear-gradient(145deg,#bff6fb,#4cc8d8);box-shadow:0 0 0 3px rgba(127,234,244,.25)}
.review-who{display:flex;flex-direction:column;min-width:0;gap:2px}
html body .written-review .review-who cite{display:block;margin:0;padding:0;font-size:17px;font-weight:800;font-style:normal;line-height:1.2;color:#fff}
.review-verified{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:600;color:#8fe9b7}
.review-verified::before{content:"✓";display:inline-grid;place-items:center;width:15px;height:15px;border-radius:50%;font-size:10px;font-weight:800;color:#06301f;background:#8fe9b7}
.review-quote-mark{margin-left:auto;align-self:flex-start;font:700 56px/0.8 Georgia,serif;color:rgba(127,234,244,.28)}
.review-stars{font-size:22px;letter-spacing:3px;line-height:1;margin:2px 0 12px;color:#ffc531;text-shadow:0 0 12px rgba(255,197,49,.45)}
html body .written-review h3{margin:0 0 8px;font-size:19px;line-height:1.3;color:#fff}
html body .written-review p{margin:0 0 4px;font-size:16.5px!important;line-height:1.6!important;color:#d8eef4}

/* Read full review / show less buttons inside the cards: centred, one size */
html body .written-review :is(.review-expand,.review-text-toggle){display:flex;align-items:center;justify-content:center;width:100%;max-width:240px;min-height:44px;margin:14px auto 0!important;padding:8px 18px;text-align:center;text-decoration:none;font-weight:700;color:#06303f;background:linear-gradient(180deg,#bff6fb,#5fd2e0);border:0;border-radius:999px;box-shadow:0 6px 16px rgba(0,0,0,.3)}

/* ---------- Centre buttons everywhere on phones/tablets ---------- */
@media (max-width:739px),(max-width:767px) and (orientation:landscape){
 html body .procedure-nav{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 7px;margin:4px auto 22px;padding:0 2px}
 html body .procedure-nav a.procedure-chip{width:auto!important;flex:0 0 auto;min-height:0!important;flex-direction:row;gap:7px;padding:5px 6px 5px 13px!important;border-radius:999px!important;background:linear-gradient(180deg,#1d5a70e6,#0e3a4ee6)!important;border:1px solid #7feaf466!important;box-shadow:0 4px 12px #00101c66,inset 0 1px #d2fbff2e!important;color:#f2fcfd;text-shadow:none!important;font-size:14px}
 html body .procedure-nav a.procedure-chip span{font-size:14px;font-weight:700;white-space:nowrap}
 html body .procedure-nav a.procedure-chip small{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#7feaf4;color:#06303f;font-size:12px;font-weight:800;opacity:1}
 html body .procedure-nav a.procedure-chip:active{transform:scale(.96)}
 .procedure-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .procedure-group{margin-bottom:34px}
 .procedure-cta{flex-direction:column}
 html body .written-reviews{display:grid!important;grid-template-columns:1fr!important;columns:auto!important;gap:16px!important}
 html body .written-review{margin:0!important}
 html body :is(.hero-shortcuts,.interior-cta .actions,.request-card .actions){justify-content:center!important;align-items:center;text-align:center}
 html body :is(.more-reviews,.review-text-toggle,.show-more-stories,.story-more,[data-more-stories]){display:flex;margin:18px auto 0!important;justify-content:center;text-align:center}
 html body :is(.question-pagination,.gallery-pagination){justify-items:center;justify-content:center}
 html body :is(.question-pagination,.gallery-pagination) button{max-width:160px;margin-inline:auto}
}
/* Two-column layouts: always end on an even number, never a lone card. */
.procedure-head .pc-even{display:none}.procedure-head b{font-weight:inherit}
@media (max-width:739px),(max-width:767px) and (orientation:landscape){.procedure-grid>:last-child:nth-child(odd){display:none}.procedure-head .pc-full{display:none}.procedure-head .pc-even{display:inline}}

/* Before & After procedure boxes: no count line, tighter boxes */
html body .procedure-nav a.procedure-chip small{display:none!important}
@media(min-width:701px){
  html body .procedure-nav{gap:10px;max-width:960px;margin:6px auto 26px}
  html body .procedure-nav a.procedure-chip{min-height:46px!important;padding:8px 14px!important;gap:0}
  html body .procedure-nav a.procedure-chip span{font-size:16px;line-height:1.15}
}
@media(max-width:700px){html body .procedure-nav a.procedure-chip{padding:7px 14px!important}}
