/*
Theme Name: Rakiz Orthopedic
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A clean, trustworthy orthopedic surgeon theme using Dr. Rakiz Khan logo-inspired burgundy and gold brand colors, with service, video, blog, chamber and local SEO templates.
Version: 1.7.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rakiz-orthopedic
*/

/* ===================== Base / Reset ===================== */
:root {
  /* Dr. Rakiz Khan logo palette: burgundy + surgical gold.
     Legacy variable names are kept so older templates/custom CSS remain compatible. */
  --pc-primary: #771320;
  --pc-primary-dark: #560C16;
  --pc-accent: #C4851B;
  --pc-accent-dark: #986410;
  --pc-teal: var(--pc-primary);
  --pc-teal-dark: var(--pc-primary-dark);
  --pc-orange: var(--pc-accent);
  --pc-orange-dark: var(--pc-accent-dark);
  --pc-bg-light: #FBF7F2;
  --pc-text: #2F2426;
  --pc-muted: #75666A;
  --pc-white: #ffffff;
  --pc-tint: #E8D5B1;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--pc-text);
  line-height: 1.6;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 70px 0; }
.section-tight { padding: 50px 0; }
.center { text-align: center; }
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

/* Intentional title hierarchy for long healthcare headings. Instead of letting
   the browser break a sentence at random words, selected long titles use
   semantic line groups that remain stable on desktop, tablet and mobile. */
.smart-stack-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  max-width: 720px;
  line-height: 1.18;
  text-wrap: pretty;
}
.smart-stack-title > span { display: block; max-width: 100%; }
.why-smart-title > span,
.smart-care-title > span { white-space: nowrap; }
.smart-title-kicker {
  font-size: .82em;
  font-weight: 600;
  letter-spacing: .01em;
}
.smart-title-main {
  font-size: 1.16em;
  font-weight: 700;
  letter-spacing: -.015em;
}
.smart-title-tail {
  font-size: .92em;
  font-weight: 600;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pc-teal); color: #fff; padding: 12px 22px;
  border-radius: 6px; font-weight: 600; border: none; cursor: pointer;
}
.btn:hover { background: var(--pc-teal-dark); color: #fff; }
.btn-icon-phone { color: var(--pc-orange); flex-shrink: 0; }
.btn-orange { background: var(--pc-orange); }
.btn-orange:hover { background: var(--pc-orange-dark); }
.btn-outline { background: transparent; border: 1.5px solid var(--pc-teal); color: var(--pc-teal); }
.btn-outline:hover { background: var(--pc-teal); color: #fff; }
:focus-visible { outline: 3px solid var(--pc-orange); outline-offset: 2px; }

/* ===================== Header / Nav ===================== */
.site-header { position: relative; z-index: 100; padding: 18px 0; border-bottom: 1px solid #E9DED0; background: #fff; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-branding img.custom-logo { max-height: 50px; width: auto; }
.site-title { font-size: 1.3rem; color: var(--pc-teal); margin: 0; }
.site-title a { color: var(--pc-teal); }
.site-description { font-size: .75rem; color: var(--pc-muted); margin: 0; }
.main-navigation ul { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.main-navigation a { font-weight: 500; color: var(--pc-text); }
.main-navigation > ul > li > a { text-transform: uppercase; font-size: .92rem; letter-spacing: .03em; }
.main-navigation a:hover { color: var(--pc-orange); }
.main-navigation li { position: relative; }
.main-navigation .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(0,0,0,.12);
	border-radius: 6px;
	padding: 14px 0 8px;
	margin-top: 0;
	flex-direction: column;
	gap: 0;
	z-index: 20;
}
/* Invisible bridge above the dropdown so the mouse never leaves the
   hoverable area while moving from the parent link down into the
   sub-menu -- without this, the gap between them closes the menu
   before a click can register. */
.main-navigation .sub-menu::before {
	content: "";
	position: absolute;
	top: -12px;
	left: 0;
	right: 0;
	height: 12px;
}
.main-navigation .sub-menu li { width: 100%; }
.main-navigation .sub-menu a { display: block; padding: 8px 18px; white-space: nowrap; }
.main-navigation .menu-item-has-children:hover > .sub-menu,
.main-navigation .menu-item-has-children:focus-within > .sub-menu { display: flex; }

/* Logo-branded primary navigation. Services is intentionally presented as a
   rounded outline control, while dropdown parents receive a compact caret. */
.main-navigation > ul > li.menu-services > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1.5px solid var(--pc-primary);
  border-radius: 999px;
  color: var(--pc-primary);
  line-height: 1.2;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.main-navigation > ul > li.menu-services > a:hover,
.main-navigation > ul > li.menu-services.current-menu-item > a,
.main-navigation > ul > li.menu-services.current-menu-ancestor > a {
  background: var(--pc-primary);
  border-color: var(--pc-primary);
  color: #fff;
}
.main-navigation > ul > li.menu-services > a::after,
.main-navigation > ul > li.menu-chamber-location > a::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.main-navigation > ul > li.menu-chamber-location > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.main-navigation > ul > li.menu-chamber-location:hover > a,
.main-navigation > ul > li.menu-chamber-location.current-menu-item > a,
.main-navigation > ul > li.menu-chamber-location.current-menu-ancestor > a {
  color: var(--pc-accent-dark);
}
.main-navigation .sub-menu { border: 1px solid var(--pc-tint); }
.main-navigation .sub-menu a:hover { background: var(--pc-bg-light); color: var(--pc-primary); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--pc-teal); }

/* ===================== Hero ===================== */
.hero { background: linear-gradient(180deg,#fff,#FBF7F2); overflow: hidden; padding: 54px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .96fr) minmax(420px, 1.04fr); align-items: center; gap: 36px; min-height: 520px; }
.eyebrow { color: var(--pc-orange); font-weight: 600; letter-spacing: .04em; margin-bottom: 6px; text-transform: uppercase; font-size: .82rem; }
.hero h1 { font-size: 2.5rem; line-height: 1.15; color: var(--pc-teal); margin-bottom: 6px; }
.hero h2 { font-size: 1.5rem; color: var(--pc-teal); margin-bottom: 18px; font-weight: 600; }
.hero p { color: var(--pc-muted); max-width: 460px; margin-bottom: 24px; }
.hero-img { align-self: end; display: flex; align-items: flex-end; justify-content: center; min-width: 0; position: relative; }
.hero-img img { width: min(100%, 560px); max-height: 535px; object-fit: contain; object-position: center bottom; border-radius: 0; margin: 0 auto; filter: drop-shadow(0 20px 32px rgba(86,12,22,.10)); }

/* ===================== Doctor intro ===================== */
.intro-grid { display: grid; grid-template-columns: 340px 1fr; gap: 50px; align-items: center; }
.intro-grid img { border-radius: 10px; }
.intro-grid h3 { font-size: 1.9rem; color: var(--pc-teal); margin: 4px 0 6px; }
.cred { color: var(--pc-muted); margin: 0 0 4px; }
.specialty-tag { color: var(--pc-orange); font-weight: 600; margin: 8px 0 4px; }
.intro-grid p.desc { margin: 14px 0 20px; max-width: 640px; }

/* ===================== Stats ===================== */
.stats { background: var(--pc-teal); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); text-align: center; }
.stats-grid .num { font-size: 2.6rem; font-weight: 700; }
.stats-grid .label { color: var(--pc-tint); margin-top: 4px; }

/* ===================== Personalised care ===================== */
.care-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.care-grid h3 { color: var(--pc-teal); font-size: 1.9rem; margin-bottom: 14px; }
.care-grid .smart-care-title { margin-bottom: 16px; }
.care-grid .smart-care-title .smart-title-kicker { color: var(--pc-accent-dark); }

.care-grid ul { padding-left: 18px; list-style: disc; color: var(--pc-text); }
.care-grid li { margin-bottom: 6px; }
.care-grid img { border-radius: 10px; }

/* ===================== Treatment services ===================== */
.services { background: var(--pc-bg-light); }
.services h2 { text-align: center; color: var(--pc-teal); font-size: 2rem; margin-bottom: 10px; }
.services > .container > p.intro-text { text-align: center; color: var(--pc-muted); max-width: 680px; margin: 0 auto 40px; }
.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.card img { width: 100%; height: 190px; object-fit: cover; }
.card-body { padding: 18px 20px 22px; text-align: center; }
.card-body h4 { color: var(--pc-teal); margin: 0 0 8px; font-size: 1.15rem; }
.card-body p { color: var(--pc-muted); font-size: .92rem; margin: 0; }

/* ===================== About page photo card ===================== */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 50px; align-items: start; }
.about-photo-card { position: sticky; top: 24px; }
.about-photo-frame { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 16px 34px rgba(119,19,32,.18); border: 1px solid var(--pc-tint); }
.about-photo-frame img { width: 100%; height: auto; display: block; }
.about-photo-badge {
  position: absolute; left: 14px; bottom: 14px;
  background: var(--pc-teal); color: #fff; font-size: .78rem; font-weight: 600;
  padding: 7px 14px; border-radius: 30px; box-shadow: 0 6px 14px rgba(0,0,0,.2);
}
.about-photo-caption { text-align: center; margin-top: 16px; }
.about-photo-name { color: var(--pc-teal); font-weight: 700; font-size: 1.1rem; margin: 0 0 2px; }
.about-photo-role { color: var(--pc-muted); font-size: .85rem; margin: 0 0 14px; }
.about-photo-btn { width: 100%; justify-content: center; }
.about-content-wrap h1 { color: var(--pc-teal); }
.about-content h3 { color: var(--pc-teal); margin-top: 26px; }
.about-content ul { padding-left: 18px; list-style: disc; }
.about-content li { margin-bottom: 6px; }

/* ===================== CTA banner ===================== */
.cta { background: var(--pc-teal); color: #fff; }
.cta-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.cta h3 { font-size: 1.8rem; margin-bottom: 6px; }
.cta p { margin: 0; color: var(--pc-tint); }

/* ===================== Why choose ===================== */
.why-grid { display: grid; grid-template-columns: 380px 1fr; gap: 50px; align-items: center; }
.why-grid img { border-radius: 10px; }
.why-grid h3 { color: var(--pc-teal); font-size: 1.8rem; margin-bottom: 4px; }
.why-grid .why-smart-title { margin-bottom: 8px; }
.why-grid .why-smart-title .smart-title-kicker { color: var(--pc-accent-dark); }
.why-grid .why-smart-title .smart-title-main { color: var(--pc-primary); }
.why-grid .why-smart-title .smart-title-tail { color: var(--pc-primary-dark); }
.why-grid h4 { color: var(--pc-muted); font-weight: 500; margin-bottom: 14px; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: var(--pc-bg-light); border-radius: 8px; padding: 20px 24px; margin-top: 18px; }
.vm-grid h5 { color: var(--pc-teal); margin-bottom: 8px; }
.vm-grid ul { padding-left: 18px; list-style: disc; font-size: .93rem; }

/* ===================== Videos ===================== */
.video-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 26px; }
.video-thumb { position: relative; border-radius: 8px; overflow: hidden; }
.video-thumb img { width: 100%; height: 190px; object-fit: cover; }
.play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 54px; height: 54px; background: rgba(220,50,40,.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.play-icon::after { content: ""; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; margin-left: 3px; }

/* ===================== Blog section / archive / single ===================== */
.blogs { background: var(--pc-bg-light); }
.blogs h2 { text-align: center; color: var(--pc-teal); margin-bottom: 30px; }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.blog-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.blog-card img { width: 100%; height: 180px; object-fit: cover; }
.blog-card .blog-body { padding: 16px 18px; }
.blog-card .blog-meta { color: var(--pc-muted); font-size: .82rem; margin: 6px 0 8px; }
.blog-card p { font-size: .9rem; margin: 0; }
.blog-card h3 { font-size: 1.05rem; color: var(--pc-teal); }

.single-post-content, .page-content-wrap { max-width: 780px; margin: 0 auto; }
.single-post-content h1, .page-content-wrap h1 { color: var(--pc-teal); font-size: 2rem; margin-bottom: 16px; }
.single-post-content .post-meta { color: var(--pc-muted); font-size: .9rem; margin-bottom: 24px; }
.single-post-content img, .page-content-wrap img { border-radius: 8px; margin: 20px 0; }

/* ---- Rich content typography (service pages, posts) ---- */
.page-content h2, .post-content h2 { color: var(--pc-teal); font-size: 1.4rem; margin: 34px 0 14px; }
.page-content h3, .post-content h3 { color: var(--pc-teal); font-size: 1.15rem; margin: 26px 0 10px; }
.page-content p, .post-content p { margin: 0 0 16px; color: var(--pc-text); }
.page-content ul, .post-content ul { list-style: disc; padding-left: 22px; margin: 0 0 18px; }
.page-content ol, .post-content ol { padding-left: 22px; margin: 0 0 18px; }
.page-content li, .post-content li { margin-bottom: 8px; }
.page-content strong, .post-content strong { color: var(--pc-teal); }
.page-content a, .post-content a { color: var(--pc-orange); text-decoration: underline; }

/* ---- Service overview page ---- */
.service-page-hero { background: var(--pc-bg-light); padding: 46px 0; text-align: center; }
.service-page-hero h1 { color: var(--pc-teal); font-size: 2.1rem; margin-bottom: 10px; }
.service-page-hero p { color: var(--pc-muted); max-width: 620px; margin: 0 auto; }
.service-grid .card { text-align: left; display: flex; flex-direction: column; }
.service-grid .card a.card-link { display: block; color: inherit; }
.card-body .btn-outline { margin-top: 14px; padding: 8px 16px; font-size: .85rem; }

/* ===================== FAQ ===================== */
.faq h2 { color: var(--pc-teal); font-size: 2rem; margin-bottom: 10px; }
.faq > .container > p.intro-text { color: var(--pc-muted); max-width: 640px; margin: 0 auto 36px; }
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--pc-bg-light);
  border: 1px solid #E9DED0;
  border-radius: 10px;
  padding: 4px 22px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 30px 16px 0;
  font-weight: 600;
  color: var(--pc-teal);
  font-size: 1.02rem;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--pc-orange);
  border-bottom: 2px solid var(--pc-orange);
  transform: translateY(-65%) rotate(45deg);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-35%) rotate(-135deg); }
.faq-item p { margin: 0 0 18px; color: var(--pc-muted); font-size: .95rem; max-width: 720px; }

/* ===================== Chamber ===================== */
.chamber-grid { display: grid; grid-template-columns: 380px 1fr; background: var(--pc-bg-light); border-radius: 10px; overflow: hidden; }
.chamber-grid img { height: 100%; object-fit: cover; }
.chamber-body { padding: 34px 40px; }
.chamber-body h3 { color: var(--pc-teal); margin-bottom: 16px; }
.chamber-body .hospital-name { color: var(--pc-teal); font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; }
.chamber-body h6 { color: var(--pc-teal); margin: 14px 0 4px; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.chamber-body p { margin: 0; font-size: .95rem; }

/* ===================== Footer ===================== */
.site-footer { background: var(--pc-teal-dark); color: var(--pc-tint); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h5 { color: #fff; margin-bottom: 14px; }
.footer-grid li { margin-bottom: 8px; font-size: .92rem; }
.footer-grid a { color: var(--pc-tint); }
.footer-grid a:hover { color: #fff; }
.footer-logo { display: inline-block; margin-bottom: 16px; max-width: 100%; }
.footer-logo img { width: 100%; max-width: 240px; height: auto; display: block; }
.footer-brand-name { color: #fff; font-size: 1.05rem; font-weight: 700; letter-spacing: .3px; margin: 0 0 4px; }
.footer-brand-desc { color: var(--pc-tint); font-size: .85rem; margin: 0; }
.footer-bottom { text-align: center; padding-top: 30px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.footer-credit a { color: var(--pc-orange); text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }

/* ===================== 404 ===================== */
.error-404 { text-align: center; padding: 100px 24px; }
.error-404 h1 { font-size: 5rem; color: var(--pc-teal); margin-bottom: 10px; }

/* ===================== Appointment Page ===================== */
.appointment-card {
  max-width: 780px; margin: 0 auto; background: #fff;
  border: 1px solid #E9DED0; border-top: 3px solid var(--pc-orange);
  border-radius: 14px; padding: 46px 50px; box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.appointment-card h1 { color: var(--pc-teal); font-size: 1.9rem; margin-bottom: 10px; }
.appointment-sub { color: var(--pc-muted); margin-bottom: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; color: var(--pc-text); }
.form-group .req { color: #d9534f; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #E8DED3; border-radius: 8px;
  background: #FCF9F5; font-family: inherit; font-size: .95rem; color: var(--pc-text);
}
.form-group textarea { resize: vertical; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--pc-teal); background: #fff; }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--pc-teal), var(--pc-teal-dark));
  color: #fff; border: none; padding: 14px 28px; border-radius: 40px;
  font-weight: 700; font-size: 1rem; cursor: pointer;
  box-shadow: 0 8px 18px rgba(119,19,32,.30);
}
.btn-whatsapp:hover { filter: brightness(1.1); }
.appointment-note { text-align: center; color: var(--pc-muted); font-size: .85rem; margin-top: 18px; margin-bottom: 0; }

/* ===================== Blinking "Appointment" nav button ===================== */
@keyframes urocare-nav-cta-blink { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.main-navigation .nav-cta > a {
  background: var(--pc-orange); color: #fff; padding: 9px 18px; border-radius: 30px;
  animation: urocare-nav-cta-blink 1.4s ease-in-out infinite;
}
.main-navigation .nav-cta > a:hover { background: var(--pc-orange-dark); color: #fff; animation: none; }

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
  .hero { padding-top: 44px; }
  .hero-grid, .intro-grid, .care-grid, .why-grid, .chamber-grid, .about-grid { grid-template-columns: 1fr !important; }
  .hero-grid { min-height: 0; gap: 26px; }
  .hero-img img { width: min(100%, 500px); max-height: 480px; }
  .about-photo-card { position: static; max-width: 280px; margin: 0 auto 30px; }
  .service-grid, .video-grid, .blog-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; }
  .stats-grid { grid-template-columns: 1fr !important; gap: 24px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 26px; }
  .main-navigation ul { display: none; }
  .menu-toggle { display: block; }
  .main-navigation.is-open > ul { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 20px 24px; box-shadow: 0 12px 24px rgba(0,0,0,.10); z-index: 50; max-height: calc(100vh - 88px); overflow-y: auto; border-top: 1px solid #F0E6DC; }
  .main-navigation.is-open > ul > li { width: 100%; }
  .main-navigation .sub-menu {
    display: none;
    position: static;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    padding: 4px 0 4px 16px;
    margin-top: 6px;
  }
  .main-navigation .sub-menu::before { display: none; }
  .main-navigation .sub-menu a { padding: 8px 0; text-transform: none; font-size: .88rem; color: var(--pc-muted); }
  .main-navigation .menu-item-has-children.submenu-open > .sub-menu { display: flex !important; }
  .main-navigation > ul > li.menu-chamber-location > a {
    display: block;
    width: 100%;
  }
  /* Keep Services as a compact branded pill on tablet/mobile instead of a
     full-width outlined row. */
  .main-navigation > ul > li.menu-services > a {
    display: inline-flex;
    width: auto;
    max-width: max-content;
    align-items: center;
    padding: 9px 36px 9px 14px;
  }
  .main-navigation .menu-item-has-children > a { position: relative; display: block; padding-right: 26px; }
  .main-navigation > ul > li.menu-services.menu-item-has-children > a { padding-right: 36px; }
  .main-navigation .menu-item-has-children > a::after {
    content: "";
    display: block;
    position: absolute; right: 4px; top: 45%;
    width: 8px; height: 8px;
    margin-left: 0;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
    transition: transform .2s ease;
  }
  .main-navigation .menu-item-has-children.submenu-open > a::after {
    transform: translateY(-25%) rotate(-135deg);
  }
}
@media (max-width: 560px) {
  .hero { padding-top: 34px; }
  .hero-img { margin-top: 8px; }
  .hero-img img { width: min(94vw, 420px); max-height: 420px; }
  .why-grid h3 { font-size: clamp(1.24rem, 5.7vw, 1.72rem); }
  .why-grid .why-smart-title { gap: 3px; max-width: 100%; }
  .why-grid .why-smart-title .smart-title-main { font-size: 1.13em; line-height: 1.16; }
  .why-grid .why-smart-title .smart-title-tail { font-size: .9em; line-height: 1.25; }
  .care-grid .smart-care-title { font-size: clamp(1.22rem, 5.4vw, 1.72rem); gap: 3px; }
  .care-grid .smart-care-title .smart-title-main { font-size: 1.1em; }
  .intro-grid h3 { font-size: clamp(1.3rem, 6.5vw, 1.9rem); }
  .service-grid, .video-grid, .footer-grid, .blog-grid { grid-template-columns: 1fr !important; }
  .hero h1 { font-size: clamp(1.3rem, 6.5vw, 1.9rem); }
  .hero h2 { font-size: clamp(0.72rem, 3.6vw, 1.05rem); font-weight: 500; color: var(--pc-muted); margin-bottom: 14px; }
  .chamber-body { padding: 26px; }
  .appointment-card { padding: 30px 22px; }
  .form-row { grid-template-columns: 1fr; }

  /* ---- Hero: short headline + button reads best centred when stacked ---- */
  .hero-grid { text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero .btn { margin-left: auto; margin-right: auto; }

  /* ---- CTA banner: stack instead of squeezing text + button side by side ---- */
  .cta-grid { flex-direction: column; text-align: center; }

  /* ---- Body copy, lists, footer & address blocks: keep left-aligned so
         paragraphs, bullet lists and the chamber/hours info stay easy to
         scan instead of zig-zagging down the middle of a narrow screen ---- */
  .intro-grid, .care-grid, .why-grid, .vm-grid,
  .chamber-body, .about-content, .about-content-wrap,
  .page-content, .post-content, .single-post-content,
  .page-content-wrap, .footer-grid {
    text-align: left;
  }
  .intro-grid p.desc, .care-grid > div > p, .why-grid p,
  .page-content p, .post-content p, .about-content p,
  .chamber-body p {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }
  .page-content ul, .post-content ul, .about-content ul,
  .care-grid ul, .vm-grid ul {
    text-align: left;
    list-style-position: outside;
    padding-left: 20px;
    margin: 0 0 16px;
  }
  .intro-grid .btn { margin-left: 0; margin-right: 0; }
}

/* ---------- SEO Breadcrumbs ---------- */
.urocare-breadcrumbs {
  background: var(--pc-bg-light);
  padding: 12px 0;
  font-size: .85rem;
}
.urocare-breadcrumbs a {
  color: var(--pc-teal);
  text-decoration: none;
}
.urocare-breadcrumbs a:hover { text-decoration: underline; }
.urocare-breadcrumbs .sep { color: var(--pc-muted); margin: 0 6px; }
.urocare-breadcrumbs .current { color: var(--pc-muted); }

/* ---------- Blog pagination (template-blog.php, archive.php, index.php) ---------- */
.pagination, .blog-pagination nav { display: flex; }
.pagination .nav-links, .blog-pagination .page-numbers { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.page-numbers, a.page-numbers, span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--pc-tint);
  color: var(--pc-teal);
  text-decoration: none;
  font-weight: 500;
  font-size: .9rem;
}
a.page-numbers:hover { background: var(--pc-teal); color: #fff; border-color: var(--pc-teal); }
span.page-numbers.current { background: var(--pc-teal); color: #fff; border-color: var(--pc-teal); }
span.page-numbers.dots { border: none; }

/* ---------- Comments (single.php, only shown if comments are open) ---------- */
.comments-area { margin-top: 44px; max-width: 780px; }
.comments-title, .comment-reply-title {
  color: var(--pc-teal);
  font-size: 1.35rem;
  margin-bottom: 20px;
}
.comment-reply-title { font-size: 1.15rem; margin-top: 36px; }
.comment-list { list-style: none; margin: 0 0 22px; padding: 0; }
.comment-list .children { list-style: none; margin: 16px 0 0 30px; padding: 0; }
.comment-body {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--pc-tint);
}
.comment-author .avatar { border-radius: 50%; flex-shrink: 0; }
.comment-author .fn { font-weight: 700; color: var(--pc-teal); font-style: normal; }
.comment-metadata { font-size: .78rem; color: var(--pc-muted); margin-bottom: 6px; }
.comment-metadata a { color: inherit; }
.comment-content p { margin: 0 0 8px; }
.comment-reply-link { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--pc-orange); }
.comments-closed-note { color: var(--pc-muted); font-size: .9rem; }


/* ===================== v1.6.1 Khulna Local SEO ===================== */
.chamber-seo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}
.chamber-booking + .chamber-seo-link {
  margin-left: 10px;
}

.local-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--pc-orange-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.khulna-landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 46px;
  align-items: start;
}
.khulna-content { min-width: 0; }
.khulna-content h2,
.khulna-content h3 { color: var(--pc-teal); }
.khulna-content ul {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 22px;
}
.khulna-content li { margin-bottom: 8px; }
.khulna-content a {
  color: var(--pc-teal);
  font-weight: 700;
  text-decoration: underline;
}
.khulna-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 20px;
}
.local-chamber-card,
.local-related-card {
  padding: 28px;
  border: 1px solid #E8DED3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(119,19,32,.08);
}
.local-chamber-card {
  border-top: 4px solid var(--pc-orange);
}
.local-chamber-card h2,
.local-related-card h3 {
  color: var(--pc-teal);
  margin-bottom: 14px;
}
.local-chamber-card h2 { font-size: 1.3rem; }
.local-chamber-card dl { margin: 0 0 20px; }
.local-chamber-card dt {
  margin-top: 14px;
  color: var(--pc-teal);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.local-chamber-card dd {
  margin: 4px 0 0;
  color: var(--pc-text);
}
.local-chamber-card .btn {
  width: 100%;
  margin-top: 8px;
}
.local-text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--pc-teal);
  font-weight: 700;
  text-decoration: underline;
}
.local-related-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.local-related-card li + li { margin-top: 10px; }
.local-related-card a {
  color: var(--pc-teal);
  font-weight: 700;
}
.local-inline-section { background: var(--pc-bg-light); }
.local-inline-note {
  display: flex;
  align-items: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border: 1px solid #E8DED3;
  border-radius: 12px;
  background: #fff;
}
.local-inline-note strong { color: var(--pc-teal); }
.local-inline-note a {
  color: var(--pc-orange-dark);
  font-weight: 800;
  text-decoration: underline;
}
.khulna-map-section iframe {
  box-shadow: 0 10px 28px rgba(119,19,32,.08);
}

@media (max-width: 900px) {
  .khulna-landing-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .khulna-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .khulna-sidebar { grid-template-columns: 1fr; }
  .chamber-booking + .chamber-seo-link {
    margin-left: 0;
    margin-top: 10px;
  }
}

/* ===================== Chamber Detail Pages v1.6.2 ===================== */
.chamber-detail-hero .local-kicker { color: var(--pc-orange); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin-bottom: 8px; }
.chamber-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 44px; align-items: start; }
.chamber-detail-content .page-content h2, .chamber-detail-content .page-content h3 { color: var(--pc-teal); }
.chamber-detail-content .page-content p { color: var(--pc-muted); }
.chamber-detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chamber-detail-card { background: #fff; border: 1px solid #E9DED0; border-radius: 14px; overflow: hidden; box-shadow: 0 16px 40px rgba(119,19,32,.08); position: sticky; top: 24px; }
.chamber-detail-card-head { background: var(--pc-teal); color: #fff; padding: 26px 28px; }
.chamber-detail-card-head span { display: block; color: #E1B35A; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin-bottom: 7px; }
.chamber-detail-card-head h2 { color: #fff; margin: 0; font-size: 1.25rem; line-height: 1.4; }
.chamber-detail-card-body { padding: 26px 28px; }
.chamber-detail-card-body h3 { color: var(--pc-teal); font-size: .9rem; margin: 20px 0 5px; }
.chamber-detail-card-body h3:first-child { margin-top: 0; }
.chamber-detail-card-body p { margin: 0; color: var(--pc-muted); }
.chamber-detail-card-body a { color: var(--pc-teal); font-weight: 700; }
.chamber-detail-map-section { padding-top: 0; }
.chamber-detail-map-section h2 { color: var(--pc-teal); margin-bottom: 20px; }
.chamber-detail-map { width: 100%; height: 420px; border: 0; border-radius: 14px; box-shadow: 0 12px 30px rgba(119,19,32,.08); }
.chamber-detail-back { margin-top: 18px; font-weight: 700; color: var(--pc-teal); }
@media (max-width: 900px) {
  .chamber-detail-grid { grid-template-columns: 1fr; }
  .chamber-detail-card { position: static; }
}
@media (max-width: 560px) {
  .chamber-detail-actions { flex-direction: column; }
  .chamber-detail-actions .btn { width: 100%; text-align: center; }
  .chamber-detail-map { height: 320px; }
}


/* v1.6.8 — heading rhythm audit */
.card-body h4,
.blog-card h3,
.page-content h2,
.page-content h3,
.post-content h2,
.post-content h3,
.chamber-body h3,
.chamber-detail-card-head h2,
.local-chamber-card h2,
.local-related-card h3,
.appointment-card h1 {
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

@media (max-width: 560px) {
  .services h2,
  .blogs h2,
  .faq h2,
  .page-content h1,
  .page-content h2,
  .post-content h1,
  .post-content h2,
  .appointment-card h1 {
    line-height: 1.22;
  }
}

/* v1.6.9 — hero image is user-managed only; no bundled doctor fallback. */
.hero.no-hero-image .hero-grid {
  grid-template-columns: minmax(0, 760px);
  justify-content: start;
}
.hero.no-hero-image .hero-grid > div:first-child {
  max-width: 720px;
}
@media (max-width: 900px) {
  .hero.no-hero-image .hero-grid {
    grid-template-columns: 1fr;
  }
}
