/* India Cardiac Surgery Site — blog header + right sidebar.
   Colours come from the iconic-one theme as this site uses it:
   red #ad141b (widget titles, logo), sky blue #00A1E0 (nav line, search button), deep blue #01799e (footer), teal #29879c (post titles). */
:root {
  --card-red: #ad141b;
  --card-red-2: #d3262e;
  --card-red-soft: #fdf0f0;
  --card-sky: #00a1e0;
  --card-sky-dark: #0088c0;
  --card-deep: #01799e;
  --card-teal: #29879c;
  --card-ink: #26323d;
  --card-muted: #6b7783;
  --card-line: #e4eaee;
  --card-bg: #f5f8fa;
  --card-wa: #1fa855;
  --card-radius: 10px;
  --card-shadow: 0 2px 14px rgba(1, 50, 70, .08);
}

.card-top, .card-header, #secondary.card-side { font-family: "Ubuntu", Helvetica, Arial, sans-serif; }
.card-top *, .card-header *, #secondary.card-side * { box-sizing: border-box; }
.card-top svg, .card-header svg, .card-side svg { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- top bar ---------- */
.card-top { background: var(--card-deep); color: #fff; font-size: 13px; }
.card-top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 20px; }
.card-top__tag { display: inline-flex; align-items: center; gap: 7px; letter-spacing: .3px; opacity: .95; }
.card-top__tag svg { color: #ff8a8f; font-size: 15px; }
.card-top__links { display: flex; align-items: center; gap: 18px; }
.card-top a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.card-top a:hover, .card-top a:focus-visible { color: #cdefff; }
.card-top a svg { font-size: 15px; }
.card-top .card-top__wa { background: var(--card-wa); padding: 3px 10px 3px 8px; border-radius: 30px; font-weight: 700; }
.card-top .card-top__wa:hover { color: #fff; background: #178a45; }

/* ---------- logo row ---------- */
.card-header { background: #fff; position: relative; }
.card-head { display: flex; align-items: center; gap: 24px; padding: 14px 20px 12px; }
.card-brand { flex: none; display: block; line-height: 0; }
.card-brand img { width: 250px; height: auto; display: block; }
.card-head__pulse { flex: 1; min-width: 80px; height: 46px; color: var(--card-red); opacity: .22; }
.card-head__pulse svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.card-head__cta { flex: none; display: flex; align-items: center; gap: 16px; }

.card-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 30px; padding: 11px 22px; font: 700 14px/1.2 "Ubuntu", Helvetica, Arial, sans-serif; letter-spacing: .3px; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; }
.card-btn--red { background: linear-gradient(135deg, var(--card-red-2), var(--card-red)); color: #fff !important; box-shadow: 0 4px 12px rgba(173, 20, 27, .28); }
.card-btn--red:hover, .card-btn--red:focus-visible { background: var(--card-red); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(173, 20, 27, .34); }
.card-btn--sky { background: var(--card-sky); color: #fff !important; }
.card-btn--sky:hover { background: var(--card-sky-dark); }
.card-btn--wa { background: var(--card-wa); color: #fff !important; }
.card-btn--wa:hover { background: #178a45; }
.card-btn svg { font-size: 17px; }

/* ---------- menu ---------- */
.card-nav { background: #f7f9fa; border-top: 1px solid var(--card-line); border-bottom: 3px solid var(--card-sky); position: relative; z-index: 50; }
.card-nav ul { list-style: none; margin: 0; padding: 0 12px; display: flex; flex-wrap: wrap; }
.card-nav li { margin: 0; position: relative; }
.card-nav a, .card-nav .card-sub-toggle { display: flex; align-items: center; gap: 6px; padding: 14px 16px 12px; font: 700 13px/1.2 "Ubuntu", Helvetica, Arial, sans-serif; text-transform: uppercase; letter-spacing: .8px; color: #4a5560; text-decoration: none; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -3px; cursor: pointer; }
.card-nav a:hover, .card-nav .card-sub-toggle:hover, .card-nav a:focus-visible, .card-nav .card-sub-toggle:focus-visible, .card-has-sub.is-open > .card-sub-toggle { color: var(--card-red); }
.card-nav a.is-current { color: var(--card-red); border-bottom-color: var(--card-red); }
.card-sub-toggle i { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.card-has-sub.is-open .card-sub-toggle i { transform: rotate(-135deg) translateY(-1px); }
.card-sub { text-align: left; display: none; position: absolute; left: 0; top: 100%; margin-top: 3px; width: min(720px, 86vw); background: #fff; border-top: 3px solid var(--card-red); border-radius: 0 0 var(--card-radius) var(--card-radius); box-shadow: 0 14px 30px rgba(1, 50, 70, .16); padding: 10px; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.card-has-sub.is-open .card-sub { display: grid; }
.card-nav .card-sub a { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13.5px; line-height: 1.4; color: var(--card-ink); padding: 8px 10px 8px 22px; border: 0; margin: 0; border-radius: 6px; position: relative; }
.card-nav .card-sub a::before { content: ""; position: absolute; left: 9px; top: 15px; width: 5px; height: 5px; border-radius: 50%; background: var(--card-sky); }
.card-nav .card-sub a:hover, .card-nav .card-sub a:focus-visible { background: var(--card-red-soft); color: var(--card-red); }
.card-burger { display: none; }

/* ---------- sidebar ---------- */
#secondary.card-side { padding: 4px 14px 0 0; text-align: left; }
/* the theme centres widget text on narrow screens */
#secondary.card-side .card-box, #secondary.card-side .card-box a, #secondary.card-side .card-box p, .card-nav .card-sub a { text-align: left; }
#secondary.card-side .card-cats a[dir="rtl"] { text-align: right; }
#secondary.card-side .card-btn, #secondary.card-side .card-sent, #secondary.card-side .card-sent p { text-align: center; justify-content: center; }
.card-box { background: #fff; border: 1px solid var(--card-line); border-radius: var(--card-radius); box-shadow: var(--card-shadow); margin: 0 0 22px; overflow: hidden; }
.card-box__title { margin: 0; padding: 13px 16px 12px 18px; background: #f2f2f2; color: var(--card-red); font: 700 15px/1.3 "Ubuntu", Helvetica, Arial, sans-serif; letter-spacing: .3px; border-left: 4px solid var(--card-red); }

.card-search { display: flex; padding: 6px; gap: 6px; }
.card-search input { flex: 1; min-width: 0; border: 1px solid var(--card-line); border-radius: 6px; padding: 10px 12px; font: 14px "Ubuntu", Helvetica, Arial, sans-serif; color: var(--card-ink); background: var(--card-bg); }
.card-search input:focus { outline: 2px solid var(--card-sky); outline-offset: 0; background: #fff; }
.card-search button { flex: none; width: 46px; border: 0; border-radius: 6px; background: var(--card-sky); color: #fff; font-size: 19px; cursor: pointer; display: grid; place-items: center; }
.card-search button:hover { background: var(--card-sky-dark); }

/* consultation form */
.card-consult { border: 0; scroll-margin-top: 16px; }
.card-consult__head { position: relative; padding: 18px 18px 16px; background: linear-gradient(135deg, var(--card-red-2) 0%, var(--card-red) 70%); color: #fff; overflow: hidden; }
.card-consult__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--card-sky); }
.card-consult__head .card-consult__ecg { position: absolute; right: 0; top: 10px; width: 120px; height: 44px; opacity: .25; }
.card-consult__head .card-consult__ecg svg { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.card-consult__title { margin: 0 0 5px; color: #fff; font: 700 20px/1.25 "Ubuntu", Helvetica, Arial, sans-serif; display: flex; align-items: center; gap: 8px; }
.card-consult__title svg { font-size: 22px; }
.card-consult__head p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #ffe4e5; position: relative; }
.card-form { padding: 16px 16px 14px; margin: 0; }
.card-field { margin: 0 0 10px; }
.card-field label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card-field input, .card-field select, .card-field textarea { display: block; width: 100%; margin: 0; border: 1px solid #d5dee4; border-radius: 6px; background: #fff; padding: 10px 12px; font: 14px/1.4 "Ubuntu", Helvetica, Arial, sans-serif; color: var(--card-ink); transition: border-color .15s, box-shadow .15s; }
.card-field select { height: 42px; padding: 8px 10px; color: var(--card-ink); }
.card-field select:invalid { color: #8a949c; }
.card-field textarea { resize: vertical; min-height: 74px; }
.card-field input::placeholder, .card-field textarea::placeholder { color: #8a949c; }
.card-field input:focus, .card-field select:focus, .card-field textarea:focus { outline: none; border-color: var(--card-sky); box-shadow: 0 0 0 3px rgba(0, 161, 224, .18); }
.card-field.is-invalid input, .card-field.is-invalid select, .card-field.is-invalid textarea { border-color: var(--card-red); box-shadow: 0 0 0 3px rgba(173, 20, 27, .1); }
.card-field.is-valid input, .card-field.is-valid select { border-color: #7cc3a0; }
.card-err { display: block; color: var(--card-red); font-size: 12px; line-height: 1.35; margin-top: 3px; }
.card-err:empty { display: none; }
.card-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.card-form .card-btn { width: 100%; padding: 13px 16px; font-size: 15px; margin-top: 4px; }
.card-form .card-btn[disabled] { opacity: .7; cursor: wait; transform: none; }
.card-form-msg { margin: 10px 0 0; font-size: 13px; line-height: 1.45; }
.card-form-msg:empty { display: none; }
.card-form-msg.is-error { color: var(--card-red); }
.card-form-note { display: flex; gap: 7px; align-items: flex-start; margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: var(--card-muted); }
.card-form-note svg { color: var(--card-sky); font-size: 15px; margin-top: 1px; }
.card-sent { padding: 26px 20px 24px; text-align: center; }
.card-sent__ico { width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 50%; background: #e6f6ee; color: var(--card-wa); display: grid; place-items: center; font-size: 28px; }
.card-sent__ico svg { width: 28px; height: 28px; }
.card-sent strong { display: block; font-size: 17px; color: var(--card-ink); margin-bottom: 6px; }
.card-sent p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--card-muted); }

/* talk to us */
.card-talk { padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card-talk p { grid-column: 1 / -1; margin: 0 0 2px; font-size: 13.5px; line-height: 1.5; color: var(--card-muted); }
.card-talk p strong { display: block; color: var(--card-ink); font-size: 15px; margin-bottom: 2px; }
.card-talk .card-btn { padding: 10px 8px; font-size: 13.5px; border-radius: 8px; }

/* recent posts */
.card-recent { list-style: none; margin: 0; padding: 6px 0; counter-reset: card-r; }
.card-recent li { margin: 0; counter-increment: card-r; }
.card-recent a { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 10px 16px; color: var(--card-teal); text-decoration: none; font-size: 14px; line-height: 1.45; border-bottom: 1px solid #eef2f4; }
.card-recent li:last-child a { border-bottom: 0; }
.card-recent a::before { content: counter(card-r); width: 26px; height: 26px; border-radius: 50%; background: var(--card-red-soft); color: var(--card-red); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.card-recent a:hover, .card-recent a:focus-visible { color: var(--card-red); background: #fbfcfd; }

/* categories */
.card-cats { list-style: none; margin: 0; padding: 6px 0; }
.card-cats li { margin: 0; }
.card-cats a { display: flex; align-items: center; gap: 10px; padding: 8px 16px; color: var(--card-ink); text-decoration: none; font-size: 14px; line-height: 1.4; border-bottom: 1px dashed #e8edf0; }
.card-cats li:last-child a { border-bottom: 0; }
.card-cats a::before { content: ""; flex: none; width: 6px; height: 6px; border-top: 2px solid var(--card-sky); border-right: 2px solid var(--card-sky); transform: rotate(45deg); }
.card-cats a[dir="rtl"]::before { transform: rotate(-135deg); }
.card-cats a:hover, .card-cats a:focus-visible { color: var(--card-red); background: #fbfcfd; }
.card-cats a:hover::before { border-color: var(--card-red); }

/* follow us */
.card-social { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 16px 16px; }
.card-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; transition: transform .15s; }
.card-social a:hover, .card-social a:focus-visible { transform: translateY(-2px); }
.card-social img { width: 38px; height: 38px; display: block; }

/* ---------- tablet ---------- */
@media (max-width: 960px) {
  .card-head__pulse { display: none; }
  .card-head { justify-content: space-between; }
  .card-brand img { width: 210px; }
}

/* ---------- phones ---------- */
@media (max-width: 700px) {
  .card-top__tag { display: none; }
  .card-top__in { justify-content: center; padding: 6px 12px; }
  .card-top__links { gap: 14px; }
  .card-top__mail span { display: none; }
  .card-head { flex-direction: column; gap: 10px; padding: 12px 14px; }
  .card-brand img { width: min(220px, 70vw); }
  .card-head__cta { width: 100%; justify-content: center; gap: 10px; }
  .card-head__cta .card-btn { padding: 10px 14px; font-size: 13px; white-space: nowrap; }
  #secondary.card-side { padding-right: 0; }

  .card-nav ul#card-menu { display: none; flex-direction: column; padding: 0 0 8px; }
  .card-nav.is-open ul#card-menu { display: flex; }
  .card-burger { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px 16px; background: none; border: 0; font: 700 14px "Ubuntu", Helvetica, Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px; color: #4a5560; cursor: pointer; }
  .card-bars, .card-bars::before, .card-bars::after { display: block; width: 20px; height: 2px; background: var(--card-red); border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
  .card-bars::before, .card-bars::after { content: ""; position: absolute; left: 0; }
  .card-bars::before { top: -6px; }
  .card-bars::after { top: 6px; }
  .card-nav.is-open .card-bars { background: transparent; }
  .card-nav.is-open .card-bars::before { transform: translateY(6px) rotate(45deg); }
  .card-nav.is-open .card-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .card-nav li { border-top: 1px solid var(--card-line); }
  .card-nav a, .card-nav .card-sub-toggle { width: 100%; justify-content: center; padding: 13px 16px; }
  .card-nav a.is-current { border-bottom-color: transparent; background: var(--card-red-soft); }
  .card-sub { position: static; width: auto; margin: 0 10px 8px; box-shadow: none; border: 1px solid var(--card-line); border-top: 3px solid var(--card-red); grid-template-columns: 1fr; }
  .card-nav .card-sub a { justify-content: flex-start; }

  .card-talk .card-btn { font-size: 13px; }
}

/* ---------- site-wide phone fixes (theme layout) ----------
   Anything wider than the screen makes phones zoom the whole page out, which leaves an empty strip on the right. */
@media (max-width: 767px) {
  .card-head__cta { display: none; }
  html, body { overflow-x: hidden; }
  #page.site { padding-left: 0; padding-right: 0; }
  #main.wrapper { padding: 0 12px; }
  .below-title-meta { width: auto; margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
  .entry-content img, .entry-content iframe, .entry-content video, .entry-summary img { max-width: 100% !important; height: auto; }
  .entry-content iframe { height: auto; aspect-ratio: 16 / 9; }
  .entry-content table { width: 100% !important; max-width: 100%; }
  .entry-content th, .entry-content td { overflow-wrap: anywhere; word-break: normal; padding: 6px !important; }
  .entry-content .row { margin-left: 0; margin-right: 0; }
  #copyright .row { margin: 0; }

  /* footer link columns: full width, left aligned, two link columns per section */
  .site-wordpress { float: none; padding: 18px 0 6px; }
  .site-wordpress .col-md-4 { float: none; width: 100% !important; margin: 0 !important; padding: 0 16px 12px; text-align: left; }
  .site-wordpress .col-md-4 + .col-md-4 { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 14px; }
  .site-wordpress .textwidget > div[style] { float: none !important; width: auto !important; margin: 0 !important; }
  .site-wordpress .widget-title, .site-wordpress .wp-block-paragraph strong { display: block; margin: 0 0 8px; text-align: left; font-size: 14px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #fff; }
  .site-wordpress .widget-title::after, .site-wordpress .wp-block-paragraph strong::after { content: ""; display: block; width: 34px; height: 3px; margin-top: 6px; background: var(--card-red-2); border-radius: 2px; }
  .site-wordpress .widget p, .site-wordpress aside { text-align: left; margin: 0 !important; padding: 0 !important; }
  .site-wordpress ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin: 0 !important; padding: 0; text-align: left; }
  .site-wordpress ul li, .site-wordpress .col-md-4 ul li { margin: 0; padding: 7px 0; text-align: left; line-height: 1.35; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .site-wordpress ul li a { display: block; font-size: 13px; color: #e8f6fb; text-transform: none; }
  .site-wordpress ul li a:hover { color: #fff; text-decoration: underline; }
  .site-wordpress aside { margin: 0; }
  #copyright { padding: 12px 16px; font-size: 13px; }
}
@media (max-width: 360px) {
  .site-wordpress ul { grid-template-columns: 1fr; }
}

/* ---------- city pages (tools/build_city_page.py) ---------- */
.card-note { color: var(--card-deep); font-weight: 700; font-style: italic; font-size: 15px; margin: 14px 0; }
.entry-content .card-doc { background: #fff; border: 1px solid var(--card-line); border-left: 1px solid var(--card-line); border-radius: var(--card-radius); box-shadow: var(--card-shadow); padding: 38px 20px 34px !important; margin: 0 0 24px; float: none; width: 100%; display: flow-root; }
.entry-content .card-doc .card-doc__img { width: 220px !important; height: 250px !important; object-fit: cover; object-position: center top; border: 3px solid var(--card-sky); border-radius: 6px; display: block; margin: 0 auto 10px; float: none; }
.entry-content .card-doc h3 { margin: 0 0 10px; line-height: 1.35; }
.entry-content .card-doc h3 a { color: var(--card-red) !important; font-size: 19px; text-decoration: none; }
.entry-content .card-doc h4 { margin: 0 0 7px; font-size: 14.5px; line-height: 1.45; font-weight: 400; }
.entry-content .card-doc h4 strong { color: var(--card-ink); }
.card-doc__btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 14px 0 0 !important; }
.entry-content .card-doc__btns .btn { border: 0; border-radius: 30px; padding: 9px 20px; font-weight: 700; background: linear-gradient(135deg, var(--card-red-2), var(--card-red)); color: #fff; }
.entry-content .card-doc__btns .btn:hover { background: var(--card-red); }
.entry-content .card-doc__btns .card-doc__wa { background: var(--card-wa); }
.entry-content .card-doc__btns .card-doc__wa:hover { background: #178a45; }

.card-cta { position: relative; overflow: hidden; margin: 28px 0 10px; padding: 30px 26px; border-radius: 14px; text-align: center; color: #fff; background: linear-gradient(135deg, var(--card-deep) 0%, #0b5f80 55%, var(--card-red) 140%); clear: both; }
.card-cta::before { content: ""; position: absolute; width: 240px; height: 240px; right: -90px; top: -110px; border-radius: 50%; background: rgba(211, 38, 46, .35); }
.card-cta > * { position: relative; }
.entry-content .card-cta__title { text-align: center !important; font: 700 21px/1.35 "Ubuntu", Helvetica, Arial, sans-serif !important; color: #fff !important; margin: 0 0 10px !important; padding: 0 !important; background: none !important; }
.entry-content .card-cta__desc { margin: 0 0 18px !important; color: #e6f5fb !important; font-size: 15px !important; text-align: center !important; }
.card-cta__contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 18px; }
.entry-content .card-cta__badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 30px; background: rgba(255, 255, 255, .16); color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none; }
.entry-content .card-cta__badge:hover { background: rgba(255, 255, 255, .28); }
.entry-content .card-cta__badge--wa { background: var(--card-wa); }
.entry-content .card-cta__btn { display: inline-block; padding: 13px 28px; border-radius: 30px; background: #fff; color: var(--card-red) !important; font-weight: 700; font-size: 14.5px; letter-spacing: .3px; text-decoration: none; }
.entry-content .card-cta__btn:hover { background: var(--card-red); color: #fff !important; }
@media (max-width: 767px) {
  .entry-content .card-doc { padding: 30px 14px 28px !important; }
  .entry-content .card-doc .col-md-6 { width: 100%; float: none; padding: 0 !important; margin: 0 !important; }
  .entry-content .card-doc h3, .entry-content .card-doc h4 { text-align: left; }
  .card-cta { padding: 24px 16px; }
  .entry-content .card-cta__title { font-size: 18px !important; }
}
.entry-content .card-hero { margin: 0 0 18px; }
.entry-content .card-hero img { display: block; margin: 0; border-radius: 6px; }
.entry-content .card-hero__credit { margin: 5px 2px 0; font-size: 11.5px; line-height: 1.4; color: var(--card-muted); text-align: right; }
.entry-content .card-hero__credit a { color: var(--card-muted); text-decoration: underline; }

/* "Top Surgeons" mega menu */
.card-sub.card-sub--mega { width: min(820px, 92vw); grid-template-columns: repeat(4, 1fr); gap: 0 6px; padding: 14px 12px; }
.card-nav li.card-has-sub--mega { position: static; }
.card-sub.card-sub--mega { left: 12px; }
.card-nav ul#card-menu { position: relative; }
.card-sub__col { display: flex; flex-direction: column; min-width: 0; }
.card-sub__title { margin: 0 0 6px; padding: 0 10px 7px; font: 700 13px/1.3 "Ubuntu", Helvetica, Arial, sans-serif; color: var(--card-red); text-transform: uppercase; letter-spacing: .5px; border-bottom: 2px solid var(--card-red-soft); }
.card-nav .card-sub a.card-sub__india { font-weight: 700; color: var(--card-deep); }
@media (max-width: 700px) {
  .card-sub.card-sub--mega { grid-template-columns: 1fr 1fr; gap: 10px 6px; }
}

/* author box at the end of city + India pages (tools/add_author_box.py) */
.card-author { display: flex; gap: 20px; align-items: flex-start; margin: 30px 0 24px; padding: 22px; border: 1px solid var(--card-line); border-left: 4px solid var(--card-sky); border-radius: var(--card-radius); background: linear-gradient(135deg, #f3fafd, #fff); box-shadow: var(--card-shadow); clear: both; }
.card-author__avatar { width: 96px; height: 96px; flex: none; border-radius: 10px; border: 2px solid var(--card-red); object-fit: cover; background: #fff; }
.card-author__body { min-width: 0; }
.entry-content .card-author__title, .card-author__title { margin: 0 0 6px; padding: 0; font: 700 17px/1.3 "Ubuntu", Helvetica, Arial, sans-serif; color: var(--card-red); text-align: left; }
.card-author__bio { margin: 0 0 8px; font-size: 14px; line-height: 1.6; color: var(--card-ink); text-align: left; }
.card-author__link { font-weight: 700; color: var(--card-deep); text-decoration: none; }
.card-author__link:hover { color: var(--card-red); text-decoration: underline; }
.card-author[dir="rtl"] .card-author__title, .card-author[dir="rtl"] .card-author__bio { text-align: right; }
@media (max-width: 600px) { .card-author { flex-direction: column; align-items: center; text-align: center; } .card-author__title, .card-author__bio { text-align: center !important; } }

/* language switcher on the India pages (tools/translate_india_pages.py) */
.card-lang { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin: 4px 0 14px; }
.card-lang a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border: 1px solid var(--card-line); border-radius: 30px; background: #fff; color: var(--card-ink); font: 600 13px/1.2 "Ubuntu", Helvetica, Arial, sans-serif; text-decoration: none; }
.card-lang a:hover { border-color: var(--card-sky); color: var(--card-deep); }
.card-lang a.is-current { background: var(--card-red); border-color: var(--card-red); color: #fff; }
.card-lang img { width: 24px; height: 16px; object-fit: cover; border-radius: 3px; display: block; }
@media (max-width: 600px) { .card-lang { justify-content: center; } .card-lang a { padding: 4px 8px 4px 5px; font-size: 12px; } }

/* ---------- calls to action on the migrated posts (tools/cta.py) ---------- */
/* doctor-card buttons: short pills that wrap instead of running out of the card */
.entry-content p.card-cardbtns { display: flex !important; flex-wrap: wrap !important; justify-content: center !important; gap: 10px !important; margin: 14px 0 6px !important; text-align: center !important; }
.entry-content a.btn.card-consultbtn, .entry-content a.btn.card-wabtn { margin: 0 !important; display: inline-flex; align-items: center; gap: 7px; border: 0 !important; border-radius: 30px !important; padding: 9px 18px !important; font: 700 14px/1.2 "Ubuntu", Helvetica, Arial, sans-serif !important; letter-spacing: .2px; color: #fff !important; white-space: nowrap; box-shadow: 0 3px 10px rgba(1, 50, 70, .15); transition: transform .15s, background .15s; }
.entry-content a.btn.card-consultbtn { background: linear-gradient(135deg, var(--card-red-2), var(--card-red)) !important; }
.entry-content a.btn.card-wabtn { background: var(--card-wa) !important; }
.entry-content a.btn.card-consultbtn:hover, .entry-content a.btn.card-wabtn:hover { transform: translateY(-1px); }
.entry-content a.btn.card-wabtn:hover { background: #178a45 !important; }
.entry-content a.btn.card-wabtn::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm4.5 12.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8 1-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.3-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.3.8 3.2.6a2.7 2.7 0 0 0 1.8-1.2 2.2 2.2 0 0 0 .1-1.2c0-.1-.2-.2-.5-.3z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm4.5 12.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8 1-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.3-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.3.8 3.2.6a2.7 2.7 0 0 0 1.8-1.2 2.2 2.2 0 0 0 .1-1.2c0-.1-.2-.2-.5-.3z'/%3E%3C/svg%3E") center / contain no-repeat; }
[dir="rtl"] .entry-content p.card-cardbtns, .entry-content [dir="rtl"] p.card-cardbtns { justify-content: flex-end !important; }

/* the grey CTA boxes become the same panel as the city-page call to action */
.entry-content .card-ctabox { position: relative; overflow: hidden; clear: both; margin: 26px 0 24px !important; padding: 28px 26px 26px !important; border: 0 !important; border-radius: 14px !important; color: #fff; text-align: center; background: linear-gradient(135deg, var(--card-deep) 0%, #0b5f80 55%, var(--card-red) 140%) !important; box-shadow: 0 8px 24px rgba(1, 50, 70, .18) !important; }
.entry-content .card-ctabox::before { content: ""; position: absolute; width: 240px; height: 240px; right: -90px; top: -110px; border-radius: 50%; background: rgba(211, 38, 46, .35); pointer-events: none; }
.entry-content .card-ctabox > * { position: relative; }
.entry-content .card-ctabox > br:first-child { display: none; }
.entry-content .card-ctabox p, .entry-content .card-ctabox .testi { margin: 0 auto 10px !important; max-width: 640px; color: #e6f5fb !important; font: 400 15px/1.55 "Ubuntu", Helvetica, Arial, sans-serif !important; text-align: center !important; text-transform: none; }
.entry-content .card-ctabox > p:first-of-type, .entry-content .card-ctabox > .testi:first-of-type { color: #fff !important; font-size: 19px !important; font-weight: 700 !important; line-height: 1.4 !important; margin-bottom: 14px !important; }
.entry-content .card-ctabox a[href^="mailto:"], .entry-content .card-ctabox a.card-ctabox__tel { display: inline-block; margin: 2px 4px; padding: 6px 14px; border-radius: 30px; background: rgba(255, 255, 255, .16); color: #fff !important; font-size: 14px !important; font-weight: 700; text-decoration: none; }
.entry-content .card-ctabox a.card-ctabox__tel { background: var(--card-wa); }
.entry-content .card-ctabox a[href^="mailto:"]:hover, .entry-content .card-ctabox a.card-ctabox__tel:hover { background: rgba(255, 255, 255, .28); }
.entry-content .card-ctabox .aligncenter { padding: 10px 0 0 !important; margin: 0 !important; }
.entry-content .card-ctabox a.btn.card-consultbtn { background: #fff !important; color: var(--card-red) !important; padding: 13px 28px !important; font-size: 14.5px !important; box-shadow: none; text-transform: none; }
.entry-content .card-ctabox a.btn.card-consultbtn:hover { background: var(--card-red) !important; color: #fff !important; }
.entry-content .card-ctabox h1, .entry-content .card-ctabox h2, .entry-content .card-ctabox h3, .entry-content .card-ctabox h4 { color: #fff !important; text-align: center !important; }
@media (max-width: 600px) {
  .entry-content .card-ctabox { padding: 22px 14px 20px !important; }
  .entry-content .card-ctabox > p:first-of-type, .entry-content .card-ctabox > .testi:first-of-type { font-size: 17px !important; }
  .entry-content p.card-cardbtns { justify-content: center !important; margin-left: 0 !important; }
}
.entry-content .card-ctabox a.btn.card-consultbtn { white-space: normal; max-width: 100%; justify-content: center; text-align: center !important; line-height: 1.3 !important; }

@media (max-width: 767px) {
/* doctor cards on the India and city pages: photo on top, name and details centred (tour2india layout) */
.entry-content .well.well-lg { text-align: center !important; }
.entry-content .well.well-lg .row, .entry-content .card-doc > div { display: block !important; float: none !important; width: 100% !important; margin: 0 !important; }
.entry-content .well.well-lg .col-md-6, .entry-content .well.well-lg .col-md-12 { float: none !important; width: 100% !important; padding: 0 !important; }
.entry-content .well.well-lg img { display: block !important; float: none !important; margin: 0 auto 14px !important; width: 220px !important; max-width: 75% !important; height: auto; }
.entry-content .well.well-lg .card-doc__img { height: 250px !important; object-fit: cover; object-position: center top; }
.entry-content .well.well-lg .headTagmargin { margin-top: 0 !important; }
.entry-content .well.well-lg h3, .entry-content .well.well-lg h4 { text-align: center !important; }
.entry-content .well.well-lg .AfterTxtX { text-align: left !important; }
}
.card-langwrap { margin: 0 0 8px; }

/* listing cards (blog home and author archive): thumbnails are 200 x 140 whatever the picture's shape (tools/listings.py) */
.entry-summary .excerpt-thumb img { width: 200px !important; height: 140px !important; object-fit: cover; object-position: center top; }
@media (max-width: 600px) { .entry-summary .excerpt-thumb img { width: 100% !important; height: auto !important; aspect-ratio: 200 / 140; } }

/* listing cards (blog home, author archive), as the reference: desktop = photo on the left (about 42% wide, 10:7), title left,
   text justified; phones = photo full width above the text, title centred */
.entry-summary .excerpt-thumb { float: left !important; width: 42% !important; margin: 4px 26px 14px 0 !important; }
.entry-summary .excerpt-thumb a { display: block; }
.entry-summary .excerpt-thumb img.wp-post-image { float: none !important; display: block !important; width: 100% !important; max-width: 100% !important; height: auto !important; aspect-ratio: 10 / 7; object-fit: cover; margin: 0 !important; border-radius: 4px; }
.entry-summary p { text-align: justify; font-size: 15px; line-height: 1.7; }
.entry-header .entry-title { text-align: left; }
.entry-meta { clear: both; }
@media (max-width: 767px) {
  .entry-summary .excerpt-thumb { float: none !important; width: 100% !important; margin: 0 0 12px !important; }
  .entry-header .entry-title { text-align: center; }
  .entry-summary p { text-align: left; }
}
/* listing thumbnails show the whole banner (the title strip stays readable); phones: category on the left like the reference */
.entry-summary .excerpt-thumb img.wp-post-image[src*="/assets/images/city/"] { object-fit: contain !important; background: #fff; aspect-ratio: 1200 / 630 !important; }
@media (max-width: 767px) { .entry-meta { text-align: left; } }

/* ---------- consultation popup (same size and spacing as the cosmetic popup) ---------- */
.card-modal, .card-modal * { box-sizing: border-box; font-family: "Ubuntu", Helvetica, Arial, sans-serif; }
.card-modal { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; padding: 20px; }
.card-modal.is-open { display: flex; }
.card-modal__bg { position: absolute; inset: 0; background: rgba(20, 8, 10, .55); backdrop-filter: blur(3px); animation: cardFade .2s ease; }
.card-modal__box { position: relative; width: 100%; max-width: 400px; max-height: calc(100vh - 40px); overflow: hidden auto; background: #fff; border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(40, 10, 10, .55); animation: cardPop .25s cubic-bezier(.2, .9, .3, 1.2); scrollbar-width: none; -ms-overflow-style: none; }
.card-modal__box::-webkit-scrollbar { display: none; width: 0; height: 0; }
.card-modal__head { position: relative; padding: 16px 24px 32px; text-align: center; color: #fff; background: linear-gradient(135deg, var(--card-red-2), var(--card-red)); }
.card-modal__head::before { content: ""; position: absolute; width: 190px; height: 190px; right: -70px; top: -90px; border-radius: 50%; background: rgba(0, 161, 224, .3); pointer-events: none; }
.card-modal__head::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -26px; height: 44px; background: #fff; border-radius: 50%; }
.card-modal__head > * { position: relative; z-index: 1; }
.card-modal__title { margin: 0 0 4px !important; font: 700 22px/1.2 "Ubuntu", Helvetica, Arial, sans-serif !important; color: #fff !important; }
.card-modal__head p:not(.card-modal__title) { margin: 0; font-size: 12.5px; line-height: 1.35; color: #fff !important; opacity: .92; }
.card-modal__main .card-form { position: relative; z-index: 1; padding: 2px 20px 18px; margin: 0; }
.card-modal .card-field { margin: 0 0 8px; }
.card-modal .card-field input, .card-modal .card-field select, .card-modal .card-field textarea { padding: 9px 13px; font-size: 14px; border-radius: 10px; }
.card-modal .card-field textarea { min-height: 56px; }
.card-modal .card-form .card-btn { padding: 11px; margin-top: 2px; }
.card-modal .card-form-msg { margin-top: 8px; }
.card-modal .card-sent { padding: 18px 20px 24px; }
.card-modal__x { position: absolute; top: 10px; right: 10px; z-index: 3; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: rgba(255, 255, 255, .25); color: #fff; font: 700 20px/1 "Ubuntu", Arial, sans-serif; display: grid; place-items: center; }
.card-modal__x:hover { background: #fff; color: var(--card-red); }
body.card-lock { overflow: hidden; }
@keyframes cardFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cardPop { from { transform: translateY(12px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cardUp { from { transform: translateY(100%); } to { transform: none; } }
@media (max-width: 600px) {
  .card-modal { padding: 0; align-items: flex-end; }
  .card-modal__box { max-width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; animation: cardUp .28s ease; }
}

/* story-modal:start - patient-story popup on the India pages (tools/story_popup.py; this file is shared, site colours come from --st-* set per site) */
.story-modal { --st-font: "Ubuntu", Helvetica, Arial, sans-serif; --st-head: linear-gradient(135deg, var(--card-red-2), var(--card-red)); --st-tag: rgba(255, 255, 255, .2); --st-accent: var(--card-red); --st-name: var(--card-deep); --st-ink: var(--card-ink); --st-muted: var(--card-muted); --st-line: var(--card-line); --st-foot: var(--card-bg); --st-btn: var(--card-red); --st-wa: var(--card-wa); --st-radius: 16px; --st-chip: 999px; --st-img-radius: 12px; --st-btn-radius: 999px; }
.story-modal .modal-dialog { width: calc(100% - 32px) !important; max-width: 760px !important; margin: 28px auto !important; }
.story-modal .modal-content { display: flex; flex-direction: column; max-height: calc(100vh - 56px); overflow: hidden; border: 0 !important; border-radius: var(--st-radius) !important; background: #fff; box-shadow: 0 24px 64px rgba(0, 0, 0, .35) !important; font-family: var(--st-font); }
.story-modal .story-head { position: relative; flex: 0 0 auto; display: block; min-height: 0; padding: 22px 70px 22px 28px !important; border: 0 !important; background: var(--st-head) !important; text-align: left; }
.story-modal .story-tag { display: inline-block; margin: 0 0 10px; padding: 5px 10px; border-radius: var(--st-chip); background: var(--st-tag); color: #fff; font: 700 11px/1.2 var(--st-font); letter-spacing: .14em; text-transform: uppercase; }
.story-modal .story-title { margin: 0 !important; padding: 0 !important; color: #fff !important; font: 700 21px/1.35 var(--st-font) !important; text-align: inherit !important; letter-spacing: .01em; }
.story-modal .story-x { position: absolute; top: 16px; right: 16px; float: none !important; width: 38px; height: 38px; margin: 0 !important; padding: 0 !important; border: 1px solid rgba(255, 255, 255, .45) !important; border-radius: 50%; background: rgba(255, 255, 255, .12) !important; color: #fff !important; opacity: 1 !important; font: 400 26px/34px Arial, sans-serif !important; text-shadow: none !important; cursor: pointer; transition: background .15s, color .15s; }
.story-modal .story-x:hover, .story-modal .story-x:focus { background: #fff !important; color: var(--st-accent) !important; outline: 0; }
.story-modal .story-body { flex: 1 1 auto; overflow-y: auto; padding: 26px 30px 10px !important; color: var(--st-ink); -webkit-overflow-scrolling: touch; }
.story-modal .story-body p { margin: 0 0 15px !important; color: var(--st-ink) !important; font: 400 15.5px/1.78 var(--st-font) !important; text-align: left !important; }
.story-modal .story-body p.story-who { margin: 0 0 12px !important; padding: 2px 0 2px 14px; border-left: 4px solid var(--st-accent); color: var(--st-name) !important; font: 700 16.5px/1.45 var(--st-font) !important; }
.story-modal .story-body p.story-who + p.story-who { margin-top: -6px !important; font-weight: 400 !important; font-size: 14.5px !important; color: var(--st-muted) !important; }
.story-modal .story-body p.story-who strong { font-weight: inherit; color: inherit; }
.story-modal .story-body img { display: block; float: none !important; width: 100% !important; max-width: 100% !important; height: auto !important; margin: 18px 0 22px !important; border: 0 !important; border-radius: var(--st-img-radius); box-shadow: 0 6px 22px rgba(0, 0, 0, .14); }
.story-modal .story-body p:has(> img) { margin: 0 !important; }
.story-modal .story-body > p:first-child > img, .story-modal .story-body > .story-video:first-child { margin-top: 0 !important; }
.story-modal .story-body a { color: var(--st-accent) !important; text-decoration: underline; }
.story-modal .story-video { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 18px 0 22px; overflow: hidden; border-radius: var(--st-img-radius); background: #000; box-shadow: 0 6px 22px rgba(0, 0, 0, .18); }
.story-modal .story-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.story-modal .story-foot { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 30px !important; border-top: 1px solid var(--st-line); background: var(--st-foot); }
.story-modal .story-foot p { flex: 1 1 250px; margin: 0 !important; color: var(--st-name) !important; font: 700 14.5px/1.45 var(--st-font) !important; }
.story-modal .story-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.story-modal .story-btn { display: inline-block; padding: 12px 20px; border-radius: var(--st-btn-radius); background: var(--st-btn); color: #fff !important; font: 700 13px/1.2 var(--st-font); letter-spacing: .06em; text-align: center; text-decoration: none !important; text-transform: uppercase; transition: filter .15s, transform .15s; }
.story-modal .story-btn:hover, .story-modal .story-btn:focus { filter: brightness(1.08); transform: translateY(-1px); color: #fff !important; }
.story-modal .story-btn--wa { background: var(--st-wa); }
.story-modal [dir="rtl"] .story-head { padding: 22px 28px 22px 70px !important; text-align: right; }
.story-modal [dir="rtl"] .story-x { right: auto; left: 16px; }
.story-modal [dir="rtl"] .story-body p { text-align: right !important; }
.story-modal [dir="rtl"] .story-body p.story-who { padding: 2px 14px 2px 0; border-left: 0; border-right: 4px solid var(--st-accent); }
.story-modal [dir="rtl"] .story-tag { letter-spacing: 0; }
@media (max-width: 600px) {
  .story-modal .modal-dialog { width: 100% !important; margin: 0 !important; }
  .story-modal .modal-content { max-height: 100vh; height: 100vh; border-radius: 0 !important; }
  .story-modal .story-head { padding: 16px 62px 16px 18px !important; }
  .story-modal [dir="rtl"] .story-head { padding: 16px 18px 16px 62px !important; }
  .story-modal .story-x { top: 12px; right: 12px; width: 36px; height: 36px; line-height: 32px !important; }
  .story-modal [dir="rtl"] .story-x { right: auto; left: 12px; }
  .story-modal .story-title { font-size: 17px !important; }
  .story-modal .story-body { padding: 18px 18px 6px !important; }
  .story-modal .story-body p { font-size: 15px !important; line-height: 1.7 !important; }
  .story-modal .story-foot { padding: 12px 18px 16px !important; }
  .story-modal .story-foot p { flex-basis: 100%; font-size: 13.5px !important; }
  .story-modal .story-btns { width: 100%; }
  .story-modal .story-btn { flex: 1 1 0; padding: 12px 10px; }
}
/* story-modal:end */
