/* Cosmetic & Obesity Surgery Hospital India — blog UI layer.
   Scope: top bar + header, right-hand sidebar, enquiry forms/popup, CTA buttons, mobile bar.
   Page content, footer and the rest of the theme are left as the original design.
   Palette comes from the site logo: rose + teal. */
:root {
  --cos-rose: #c8336f;
  --cos-rose-bright: #e8478f;
  --cos-rose-soft: #fde9f2;
  --cos-blush: #fff7fa;
  --cos-teal: #46b8d2;
  --cos-teal-deep: #2b94b0;
  --cos-teal-soft: #e4f5fa;
  --cos-ink: #2a2230;
  --cos-text: #4a4250;
  --cos-muted: #7a6f7f;
  --cos-line: #f0dfe8;
  --cos-wa: #1fa855;
  --cos-radius: 16px;
  --cos-shadow: 0 10px 30px -14px rgba(120, 30, 70, .28);
  --cos-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --cos-body: "Nunito Sans", "Segoe UI", Arial, sans-serif;
}
.cos-topbar, .cos-header, .cos-card, .cos-modal, .cos-mbar { font-family: var(--cos-body); }
.cos-topbar *, .cos-header *, .cos-card *, .cos-modal *, .cos-mbar * { box-sizing: border-box; }
.cos-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar (above the logo) ---------- */
.cos-topbar { background: #fff; border-bottom: 1px solid var(--cos-line); }
.cos-topbar__in { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 4px 22px; }
.cos-ico {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff !important;
  text-decoration: none !important; transition: transform .15s, filter .15s;
}
.cos-ico:hover { transform: translateY(-1px); filter: brightness(1.08); }
.cos-ico svg { width: 12px; height: 12px; fill: currentColor; }
.cos-ico--wa { background: var(--cos-wa); }
.cos-ico--call { background: var(--cos-teal); }
.cos-topbar__num { font: 800 12.5px/1 var(--cos-body); letter-spacing: .4px; color: var(--cos-ink) !important; text-decoration: none !important; }
.cos-topbar__num:hover { color: var(--cos-rose) !important; }

/* ---------- Header: logo, then the sky-blue strip with the centred menu ---------- */
.cos-header { background: #fff; position: relative; z-index: 900; }
.cos-brand { display: block; padding: 12px 22px 10px; text-align: center; }
.cos-brand img { display: block; margin: 0 auto; width: 400px; max-width: 100%; height: auto; }
.cos-strip { background: var(--cos-teal); position: relative; }
.cos-strip ul { display: flex; align-items: stretch; justify-content: center; list-style: none; margin: 0; padding: 0; }
.cos-strip li { list-style: none; margin: 0; padding: 0; position: relative; }
.cos-strip > ul > li + li::before { content: ""; position: absolute; left: 0; top: 30%; bottom: 30%; width: 1px; background: rgba(255, 255, 255, .45); }
.cos-strip a {
  display: block; padding: 15px 30px; font: 800 14px/1 var(--cos-body); letter-spacing: 1.2px; text-transform: uppercase;
  color: #fff !important; text-decoration: none !important; transition: background .2s;
}
.cos-strip a:hover, .cos-strip a.is-current { background: var(--cos-teal-deep); }
.cos-burger { display: none; }
.cos-bars {
  display: block; width: 22px; height: 16px; flex: none;
  background: linear-gradient(#fff, #fff) top / 100% 2.5px no-repeat, linear-gradient(#fff, #fff) center / 100% 2.5px no-repeat, linear-gradient(#fff, #fff) bottom / 100% 2.5px no-repeat;
}

/* ---------- Buttons ---------- */
.cos-btn, a.cos-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px;
  border-radius: 999px; border: 0; cursor: pointer; text-decoration: none !important;
  font: 800 14px/1.1 var(--cos-body); letter-spacing: .2px; transition: transform .15s, box-shadow .2s, filter .2s;
}
.cos-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.cos-btn--rose { background: linear-gradient(135deg, var(--cos-rose-bright), var(--cos-rose)); color: #fff !important; box-shadow: 0 8px 18px -8px rgba(200, 51, 111, .7); }
.cos-btn--teal { background: linear-gradient(135deg, var(--cos-teal), var(--cos-teal-deep)); color: #fff !important; }
.cos-btn--wa { background: var(--cos-wa); color: #fff !important; }

/* In-content "Consult Now" / "Whatsapp Us" call-to-action buttons only */
.entry-content a.btn.btn-primary {
  display: inline-flex !important; align-items: center; justify-content: center; padding: 10px 20px !important; margin: 4px 6px 4px 0;
  border-radius: 999px !important; border: 0 !important; background: linear-gradient(135deg, var(--cos-rose-bright), var(--cos-rose)) !important;
  color: #fff !important; font: 800 13.5px/1.1 var(--cos-body) !important; text-decoration: none !important;
  box-shadow: 0 8px 18px -10px rgba(200, 51, 111, .8);
}
.entry-content a.btn.cos-wa-btn { background: var(--cos-wa) !important; box-shadow: 0 8px 18px -10px rgba(31, 168, 85, .8); }
.entry-content a.btn.btn-primary:hover { filter: brightness(1.06); }

/* ---------- Sidebar (right-hand side) ---------- */
#secondary .cos-card, .cos-card {
  background: #fff; border: 1px solid var(--cos-line); border-radius: var(--cos-radius); box-shadow: var(--cos-shadow);
  padding: 20px; margin: 0 0 22px; overflow: hidden;
}
.cos-card__title {
  font: 700 20px/1.25 var(--cos-head) !important; color: var(--cos-ink) !important; margin: 0 0 14px !important; padding: 0 !important;
  display: flex; align-items: center; background: none !important; border: 0 !important; text-transform: none !important;
}
.cos-card__title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cos-rose-bright); box-shadow: 14px 0 0 var(--cos-teal); margin-right: 26px; flex: none; }
.cos-search { display: flex; padding: 6px !important; }
.cos-search input {
  flex: 1; min-width: 0; border: 0 !important; outline: 0; padding: 10px 14px !important; font: 15px var(--cos-body) !important; color: var(--cos-ink); background: transparent !important; box-shadow: none !important; width: auto !important;
}
.cos-search button { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--cos-teal); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.cos-search button svg { width: 18px; height: 18px; fill: #fff; }
.cos-search:focus-within { box-shadow: 0 0 0 3px rgba(70, 184, 210, .3), var(--cos-shadow); }

.cos-recent { list-style: none !important; margin: 0 !important; padding: 0 !important; counter-reset: cosr; }
.cos-recent li { counter-increment: cosr; display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--cos-line); margin: 0; }
.cos-recent li:last-child { border-bottom: 0; padding-bottom: 0; }
.cos-recent li::before { content: counter(cosr, decimal-leading-zero); font: 700 18px/1 var(--cos-head); color: var(--cos-rose-bright); min-width: 26px; padding-top: 2px; }
.cos-recent a { color: var(--cos-ink) !important; text-decoration: none !important; font-size: 14px !important; font-weight: 700; line-height: 1.45; }
.cos-recent a:hover { color: var(--cos-rose) !important; }

.cos-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cos-cats a {
  display: inline-block; padding: 7px 13px; border-radius: 999px; font-size: 13px !important; font-weight: 700;
  background: var(--cos-teal-soft); color: var(--cos-teal-deep) !important; text-decoration: none !important; transition: .15s;
}
.cos-cats a:hover { background: var(--cos-rose); color: #fff !important; }

/* ---------- Enquiry form (sidebar + popup + contact page) ---------- */
.cos-form-card { padding: 0 !important; }
.cos-form-head {
  position: relative; padding: 22px 22px 30px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--cos-teal) 0, var(--cos-teal-deep) 100%);
}
.cos-form-head::before { content: ""; position: absolute; width: 190px; height: 190px; right: -70px; top: -90px; border-radius: 50%; background: rgba(232, 71, 143, .3); }
.cos-form-head > * { position: relative; }
.cos-form-head::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -26px; height: 44px; background: #fff; border-radius: 50%; }
.cos-form-head h2, .cos-form-head h3, .cos-form-head .cos-form-title { font: 700 22px/1.2 var(--cos-head) !important; color: #fff !important; margin: 0 0 6px !important; background: none !important; padding: 0 !important; }
.cos-form-head p { margin: 0; font-size: 13.5px; opacity: .92; color: #fff !important; }
.cos-form { padding: 6px 22px 22px; }
.cos-field { margin: 0 0 12px; position: relative; }
.cos-field label { display: block; font-size: 12.5px; font-weight: 800; color: var(--cos-ink); margin: 0 0 5px; letter-spacing: .2px; }
.cos-field label em { font-style: normal; color: var(--cos-rose); }
.cos-field label small { font-weight: 600; color: var(--cos-muted); }
.cos-field input, .cos-field select, .cos-field textarea {
  width: 100% !important; height: auto; border: 1.5px solid #ead8e1; border-radius: 12px; background: #fffafc; padding: 11px 13px;
  font: 15px/1.3 var(--cos-body); color: var(--cos-ink); outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none; appearance: none; margin: 0; box-shadow: none;
}
.cos-field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--cos-teal) 50%), linear-gradient(135deg, var(--cos-teal) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px;
}
.cos-field textarea { min-height: 84px; resize: vertical; }
.cos-field input:focus, .cos-field select:focus, .cos-field textarea:focus { border-color: var(--cos-teal); background: #fff; box-shadow: 0 0 0 3px rgba(70, 184, 210, .25); }
.cos-field.is-invalid input, .cos-field.is-invalid select, .cos-field.is-invalid textarea { border-color: #d93025; background: #fff6f5; }
.cos-field.is-valid input, .cos-field.is-valid select, .cos-field.is-valid textarea { border-color: #3aa57a; }
.cos-err { display: none; color: #c5221f; font-size: 12.5px; font-weight: 700; margin-top: 4px; }
.cos-field.is-invalid .cos-err { display: block; }
.cos-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
#secondary .cos-row2 { grid-template-columns: 1fr; }
.cos-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cos-form .cos-btn { width: 100%; padding: 14px; font-size: 15px; margin-top: 4px; }
.cos-form .cos-btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.cos-form-msg { display: none; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 700; }
.cos-form-msg.is-error { display: block; background: #fdecea; color: #b3261e; }
.cos-form-note { display: flex; gap: 6px; align-items: flex-start; margin: 10px 0 0; font-size: 12px; color: var(--cos-muted); line-height: 1.45; }
.cos-form-note svg { width: 14px; height: 14px; fill: var(--cos-teal); flex: none; margin-top: 1px; }
.cos-form-about { display: none; margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; background: var(--cos-teal-soft); color: var(--cos-teal-deep); font-size: 13.5px; font-weight: 700; }
.cos-form-about.is-on { display: block; }
.cos-page-form { max-width: 640px; margin: 26px 0 6px !important; }
.cos-thanks { text-align: center; padding: 10px 0 4px; }
.cos-thanks__lead { font: 700 24px/1.3 var(--cos-head) !important; color: var(--cos-teal-deep) !important; margin-bottom: 12px !important; }
.cos-thanks .cos-btn { margin: 6px 4px; }

/* ---------- Popup ---------- */
.cos-modal { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; padding: 20px; }
.cos-modal.is-open { display: flex; }
.cos-modal__bg { position: absolute; inset: 0; background: rgba(32, 12, 24, .55); backdrop-filter: blur(3px); animation: cosFade .2s ease; }
.cos-modal__box {
  position: relative; width: 100%; max-width: 760px; max-height: calc(100vh - 40px); overflow: auto;
  background: #fff; border-radius: 22px; box-shadow: 0 30px 80px -20px rgba(40, 10, 30, .55);
  display: grid; grid-template-columns: 270px 1fr; animation: cosPop .25s cubic-bezier(.2, .9, .3, 1.2);
}
.cos-modal__side { background: linear-gradient(160deg, var(--cos-teal) 0, var(--cos-teal-deep) 100%); color: #fff; padding: 30px 24px; position: relative; overflow: hidden; }
.cos-modal__side::after { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; bottom: -90px; border-radius: 50%; background: rgba(232, 71, 143, .35); }
.cos-modal__side h3 { font: 700 25px/1.2 var(--cos-head) !important; color: #fff !important; margin: 0 0 10px !important; }
.cos-modal__side p { font-size: 14px; color: #eaf8fc !important; margin: 0 0 18px; line-height: 1.55; }
.cos-modal__side ul { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.cos-modal__side li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 700; margin: 0 0 12px; color: #fff; }
.cos-modal__side li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c8336f' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E") center/13px no-repeat; }
.cos-modal__main .cos-form { padding: 26px 26px 24px; }
.cos-modal__main .cos-form-title { font: 700 22px/1.2 var(--cos-head); color: var(--cos-ink); margin: 0 0 4px; }
.cos-modal__main .cos-form-sub { margin: 0 0 16px; color: var(--cos-muted); font-size: 13.5px; }
.cos-modal__x {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--cos-rose-soft); color: var(--cos-rose); font: 700 22px/1 var(--cos-body); display: grid; place-items: center; padding: 0;
}
.cos-modal__x:hover { background: var(--cos-rose); color: #fff; }
body.cos-lock { overflow: hidden; }
@keyframes cosFade { from { opacity: 0; } }
@keyframes cosPop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
/* The theme's old Bootstrap popup is replaced */
#connect-modal, .modal-backdrop, .grecaptcha-badge { display: none !important; }

/* ---------- Mobile action bar ---------- */
.cos-mbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cos-topbar__in { justify-content: center; padding: 4px 14px; }
  .cos-brand { padding: 12px 16px 10px; }
  .cos-brand img { width: 270px; }
  .cos-burger {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 18px; border: 0; background: none; cursor: pointer; color: #fff;
    font: 800 14px/1 var(--cos-body); letter-spacing: 1.2px; text-transform: uppercase;
  }
  .cos-strip ul { display: none; flex-direction: column; border-top: 1px solid rgba(255, 255, 255, .35); }
  .cos-strip.is-open ul { display: flex; }
  .cos-strip > ul > li + li::before { left: 18px; right: 18px; top: 0; bottom: auto; width: auto; height: 1px; }
  .cos-strip a { padding: 14px 18px; text-align: center; }

  /* Stack content and sidebar (the theme leaves them side by side on tablets) */
  #primary.site-content, #secondary.widget-area { float: none !important; width: 100% !important; max-width: 100%; margin-left: 0 !important; margin-right: 0 !important; }
  #secondary.widget-area { padding: 0 14px; }
  .cos-modal__box { grid-template-columns: 1fr; max-width: 520px; }
  .cos-modal__side { padding: 22px 22px 18px; }
  .cos-modal__side ul { display: none; }
  .cos-modal__side p { margin: 0; }
  .cos-mbar {
    display: grid; grid-template-columns: 1fr 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
    background: #fff; border-top: 1px solid var(--cos-line); box-shadow: 0 -8px 20px -14px rgba(120, 30, 70, .5);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
  }
  .cos-mbar a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 6px; border-radius: 12px; font: 800 13.5px/1 var(--cos-body); text-decoration: none !important; }
  .cos-mbar svg { width: 17px; height: 17px; fill: currentColor; }
  .cos-mbar__call { background: var(--cos-teal-soft); color: var(--cos-teal-deep) !important; }
  .cos-mbar__wa { background: var(--cos-wa); color: #fff !important; }
  .cos-mbar__consult { background: linear-gradient(135deg, var(--cos-rose-bright), var(--cos-rose)); color: #fff !important; }
  body { padding-bottom: 70px; }
}
@media (max-width: 600px) {
  .cos-brand img { width: 220px; }
  .entry-content a, .entry-content p, .entry-content li { overflow-wrap: anywhere; }
  .entry-content img, .entry-content iframe, .entry-content table { max-width: 100% !important; }
  .cos-row2 { grid-template-columns: 1fr; }
  .cos-modal { padding: 0; align-items: flex-end; }
  .cos-modal__box { max-height: 92vh; border-radius: 22px 22px 0 0; animation: cosUp .28s ease; }
  .cos-modal__main .cos-form { padding: 20px 18px 22px; }
  @keyframes cosUp { from { transform: translateY(100%); } }
}
/* The theme's own (max-width: 420px) block forces 500px-wide containers and 20–24px text, which makes phones scroll sideways */
@media (max-width: 420px) {
  div#main.wrapper, .site-wordpress, .themonic-nav, div.textwidget { width: auto !important; }
  .site-wordpress { font-size: 14px !important; line-height: 1.6 !important; overflow-wrap: anywhere; padding: 0 12px; }
  .entry-summary p, .MainDivContX p, .MainDivContX ul li { font-size: 15px !important; line-height: 1.7 !important; }
  .widget-area .widget a { font-size: 16px !important; }
  .col-md-4 ul li a, .row .col-md-4 p.widget-title { font-size: 17px !important; }
}

/* ---------- City pages: update note + closing call-to-action (new content, so styled in the site colours) ---------- */
.cos-note { color: var(--cos-teal-deep); font-weight: 700; font-style: italic; font-size: 15px; margin: 14px 0; }
.cos-cta {
  clear: both; margin: 30px 0 6px; padding: 30px 24px; text-align: center; color: #fff; border-radius: 16px;
  background: linear-gradient(135deg, var(--cos-teal) 0, var(--cos-teal-deep) 100%); position: relative; overflow: hidden;
}
.cos-cta::before { content: ""; position: absolute; width: 240px; height: 240px; right: -90px; top: -110px; border-radius: 50%; background: rgba(232, 71, 143, .3); }
.cos-cta > * { position: relative; }
.cos-cta__title { text-align: center !important; font: 700 21px/1.35 var(--cos-head) !important; color: #fff !important; margin: 0 0 10px !important; padding: 0 !important; background: none !important; text-transform: none !important; }
.cos-cta__desc { margin: 0 0 18px !important; color: #fff !important; font-size: 15px !important; text-align: center !important; }
.cos-cta__contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 18px; }
.cos-cta__badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .18);
  color: #fff !important; text-decoration: none !important; font-weight: 700; font-size: 14px; word-break: break-all;
}
.cos-cta__badge:hover { background: rgba(255, 255, 255, .3); }
.cos-cta__badge--wa { background: var(--cos-wa); }
.entry-content a.btn.cos-cta__btn { background: #fff !important; color: var(--cos-rose) !important; box-shadow: none; padding: 13px 26px !important; font-size: 14.5px !important; margin: 0; }
.entry-content a.btn.cos-cta__btn:hover { background: var(--cos-rose) !important; color: #fff !important; }
@media (max-width: 600px) { .cos-cta { padding: 24px 16px; } .cos-cta__title { font-size: 18px !important; } }

/* ---------- Treatment dropdown ---------- */
.cos-sub-toggle {
  display: flex; align-items: center; gap: 8px; height: 100%; padding: 15px 30px; border: 0; background: none; cursor: pointer;
  font: 800 14px/1 var(--cos-body); letter-spacing: 1.2px; text-transform: uppercase; color: #fff; transition: background .2s;
}
.cos-sub-toggle i { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.cos-has-sub:hover > .cos-sub-toggle, .cos-has-sub.is-open > .cos-sub-toggle { background: var(--cos-teal-deep); }
.cos-has-sub.is-open > .cos-sub-toggle i { transform: rotate(-135deg) translateY(-2px); }
.cos-strip .cos-has-sub { position: static; }
.cos-sub {
  position: absolute; top: 100%; left: 50%; z-index: 1000; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; min-width: 520px;
  padding: 20px 24px 18px; background: #fff; border-top: 3px solid var(--cos-rose-bright); border-radius: 0 0 14px 14px;
  box-shadow: 0 22px 36px -18px rgba(14, 75, 90, .55); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: .18s;
}
.cos-has-sub:hover > .cos-sub, .cos-has-sub:focus-within > .cos-sub, .cos-has-sub.is-open > .cos-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.cos-sub__title { margin: 0 0 6px !important; padding: 0 0 8px !important; border-bottom: 2px solid var(--cos-rose-soft); font: 700 17px/1.2 var(--cos-head); color: var(--cos-ink); }
.cos-strip .cos-sub a {
  display: block; padding: 9px 10px; border-radius: 8px; background: none; color: var(--cos-text) !important;
  font: 700 14px/1.3 var(--cos-body); letter-spacing: 0; text-transform: none; text-align: left;
}
.cos-strip .cos-sub a:hover { background: var(--cos-teal-soft); color: var(--cos-teal-deep) !important; }
@media (max-width: 960px) {
  .cos-sub-toggle { width: 100%; justify-content: center; padding: 14px 18px; }
  .cos-sub { position: static; display: none; grid-template-columns: 1fr; min-width: 0; margin: 0 14px 12px; padding: 14px 16px; border-radius: 12px; opacity: 1; visibility: visible; transform: none; box-shadow: none; }
  .cos-has-sub:hover > .cos-sub { display: none; }
  .cos-has-sub.is-open > .cos-sub { display: grid; transform: none; }
}

/* ---------- Top Surgeons mega menu (4 columns) ---------- */
.cos-sub--mega { grid-template-columns: repeat(4, 1fr); min-width: 820px; gap: 6px 22px; }
.cos-sub--mega .cos-sub__title { font-size: 15.5px; }
.cos-sub--mega .cos-sub__india { font-weight: 800; color: var(--cos-rose) !important; }
@media (max-width: 960px) {
  .cos-sub--mega { min-width: 0; grid-template-columns: 1fr; }
}

/* ---------- Menu alignment: links and dropdown buttons share one baseline ---------- */
.cos-strip > ul > li { display: flex; }
.cos-strip > ul > li > a { display: flex; align-items: center; }
.cos-sub-toggle { height: auto; line-height: 1; align-items: center; }
@media (max-width: 960px) {
  .cos-strip > ul > li { display: block; }
  .cos-strip > ul > li > a, .cos-sub-toggle { width: 100%; justify-content: center; }
}

/* every item of the strip has the same height, so labels sit on one line */
.cos-strip > ul > li > a, .cos-sub-toggle { height: 50px; padding-top: 0; padding-bottom: 0; box-sizing: border-box; }
@media (max-width: 960px) {
  .cos-strip > ul > li > a, .cos-sub-toggle { height: auto; padding-top: 14px; padding-bottom: 14px; }
}

/* listing cards on phones: the thumbnail runs the full card width above the excerpt */
@media (max-width: 600px) {
  .entry-summary .excerpt-thumb { float: none !important; margin: 0 0 12px !important; width: 100% !important; }
  .entry-summary .excerpt-thumb a { display: block; }
  .entry-summary .excerpt-thumb img.wp-post-image { float: none !important; display: block; width: 100% !important; height: auto !important; max-width: 100% !important; margin: 0 !important; border-radius: 4px; aspect-ratio: 10 / 7; object-fit: cover; }
  .entry-summary .excerpt-thumb img.cos-city-thumb { aspect-ratio: 40 / 21; }
  .entry-summary .excerpt-thumb picture { display: block; }
}

/* language switcher on the "Top 10 ... in India" pages */
.cos-lang { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin: 0 0 14px; }
.cos-lang a { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; min-width: 62px; padding: 6px 8px; border: 1px solid #d9e8ee; border-radius: 6px; background: #fff; color: var(--cos-teal-deep, #2b94b0); font-size: 12px; line-height: 1.2; text-decoration: none; }
.cos-lang a:hover { background: var(--cos-teal-soft, #e4f5fa); }
.cos-lang a.is-current { border-color: var(--cos-teal, #46b8d2); background: var(--cos-teal-soft, #e4f5fa); font-weight: 700; }
.cos-lang img { width: 30px; height: 23px; display: block; }
@media (max-width: 600px) { .cos-lang { justify-content: center; } .cos-lang a { min-width: 56px; padding: 5px 6px; } }

/* doctor cards on the "Top 10 ... in India" pages: no hyphenated headings, buttons stay inside the card */
.well h3, .well h3 * { -webkit-hyphens: none !important; hyphens: none !important; word-break: normal !important; overflow-wrap: normal !important; }
.well p[style*="display: flex"] { flex-wrap: nowrap !important; gap: 10px !important; justify-content: center !important; }
.well p[style*="display: flex"] .btn { padding-left: 14px; padding-right: 14px; white-space: nowrap; }
.well h4 { overflow-wrap: anywhere; }

/* author box under posts and on the author archive */
.cos-author { display: flex; gap: 20px; align-items: flex-start; margin: 28px 0 24px; padding: 20px; border: 1px solid #d9e8ee; border-radius: 10px; background: linear-gradient(135deg, #f4fbfd, #fff); }
.cos-author__avatar { width: 96px; height: 96px; flex: none; border-radius: 10px; border: 2px solid var(--cos-teal, #46b8d2); object-fit: cover; background: #fff; }
.cos-author__body { min-width: 0; }
.cos-author__title { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--cos-teal-deep, #2b94b0); }
.cos-author__bio { margin: 0 0 8px; font-size: 14px; line-height: 1.6; text-align: left; }
.cos-author[dir="rtl"] .cos-author__bio { text-align: right; }
.cos-author__link { font-weight: 700; color: var(--cos-rose, #c8336f); }
@media (max-width: 600px) { .cos-author { flex-direction: column; align-items: center; text-align: center; } .cos-author__bio, .cos-author[dir="rtl"] .cos-author__bio { text-align: center; } }

/* listing cards of translated pages: full banner thumbnail, right-to-left text for Arabic */
.cos-thumb-full { width: 260px; height: auto; }
article[dir="rtl"] .entry-summary p, article[dir="rtl"] .entry-title { text-align: right; }
article[dir="rtl"] .entry-meta { text-align: right; }
@media (max-width: 600px) { .entry-summary .excerpt-thumb img.cos-thumb-full { aspect-ratio: 40 / 21 !important; } }

/* slim popup: one column, sky-blue header, placeholders instead of labels */
.cos-modal__box { display: block; max-width: 400px; border-radius: 18px; overflow: hidden auto; }
.cos-modal__side { display: none; }
.cos-modal__head { padding: 22px 24px 40px !important; text-align: center; }
.cos-modal__head .cos-form-title { font-size: 24px !important; }
.cos-modal__head p { font-size: 13px; }
.cos-modal__main .cos-form { padding: 6px 22px 22px; }
.cos-modal .cos-field { margin: 0 0 10px; }
.cos-modal .cos-field label { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.cos-modal .cos-field input, .cos-modal .cos-field select, .cos-modal .cos-field textarea { padding: 10px 13px; font-size: 14.5px; border-radius: 10px; }
.cos-modal .cos-field textarea { min-height: 70px; }
.cos-modal__x { top: 10px; right: 10px; width: 32px; height: 32px; background: rgba(255, 255, 255, .25); color: #fff; font-size: 20px; }
.cos-modal__x:hover { background: #fff; color: var(--cos-rose); }
@media (max-width: 600px) { .cos-modal__box { max-width: 100%; border-radius: 18px 18px 0 0; } }

/* placeholders instead of labels in every enquiry form; popup fits the screen without a scrollbar */
.cos-form .cos-field label { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.cos-form .cos-field input, .cos-form .cos-field select, .cos-form .cos-field textarea { padding: 10px 13px; font-size: 14.5px; }
.cos-modal__box { scrollbar-width: none; -ms-overflow-style: none; }
.cos-modal__box::-webkit-scrollbar { display: none; width: 0; height: 0; }
.cos-modal__head { padding: 16px 24px 32px !important; }
.cos-modal__head .cos-form-title { font-size: 22px !important; margin-bottom: 4px !important; }
.cos-modal__head p { font-size: 12.5px; line-height: 1.35; }
.cos-modal__main .cos-form { padding: 2px 20px 18px; }
.cos-modal .cos-field { margin: 0 0 8px; }
.cos-modal .cos-field input, .cos-modal .cos-field select, .cos-modal .cos-field textarea { padding: 9px 13px; font-size: 14px; }
.cos-modal .cos-field textarea { min-height: 56px; }
.cos-modal .cos-form .cos-btn { padding: 11px; margin-top: 2px; }
.cos-modal .cos-form-msg { margin-top: 8px; }

/* contact page: its own form is the page, so no sidebar next to it */
body.cos-nosidebar #primary.site-content { float: none !important; width: 100% !important; max-width: 100%; margin: 0 !important; }
body.cos-nosidebar .cos-form-card, body.cos-nosidebar .MainDivContX .cos-form { max-width: 720px; margin-left: auto; margin-right: auto; }
body.cos-nosidebar .cos-form-card { margin-left: auto !important; margin-right: auto !important; }

/* phones: header and footer use the full screen width (the theme keeps a 24px gutter and a shadow around the page) */
@media (max-width: 700px) {
  body .site, .site { padding: 0 !important; margin: 0 !important; max-width: 100% !important; box-shadow: none !important; }
  .cos-brand { padding: 10px 10px 8px; }
  .cos-brand img { width: min(340px, 94%) !important; max-width: none; height: auto; }
  .cos-topbar__in { padding: 5px 12px; }
  .row.footersection { margin-left: 0 !important; margin-right: 0 !important; }
  .footersection .col-md-4, .footersection [class*="col-"] { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 700px) {
  #primary.site-content { padding-left: 14px !important; padding-right: 14px !important; border-right: 0 !important; }
  html, body { overflow-x: hidden; }
}
.cos-form-note a { color: inherit; text-decoration: underline; }

/* 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; }
.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; }
  .entry-meta { text-align: left; }
}

/* Nov 5: city-page banner cards (full banner with its caption strip) keep their own 40:21 shape on every screen, so the
   caption is never cut off by the 10:7 crop of the other listing photos */
.entry-summary .excerpt-thumb img.wp-post-image.cos-thumb-full { aspect-ratio: 40 / 21 !important; object-fit: contain !important; }
