/* Proud Physio & Wellness — shared styles for inner pages (services + blog) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue: #4e8a2c;
  --blue-dark: #3c6e21;
  --blue-deep: #11283a;
  --blue-light: #e4f1d4;
  --green: #6fae33;
  --green-light: #8cc63f;
  --green-soft: #eaf5dc;
  --logo-blue: #1e5099;
  --grad: linear-gradient(135deg, #4e8a2c 0%, #2f7a55 48%, #1e5099 100%);
  --dark: #11283a;
  --text: #46555b;
  --light: #f4f8ef;
  --border: #e1ecd2;
}
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: #fff; font-size: 16px; line-height: 1.75; }

/* NAV */
nav { position: sticky; top: 0; z-index: 50; background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 10px 6vw; box-shadow: 0 2px 12px rgba(0,0,0,.07); }
nav .nav-logo img { height: 60px; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--dark); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue); }
.nav-cta { background: var(--blue); color: #fff !important; padding: 9px 20px; border-radius: 25px; font-weight: 600 !important; }
.nav-cta:hover { background: var(--blue-dark) !important; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 22px; color: var(--blue-deep); padding: 6px; }

/* PAGE HERO (full-bleed) */
.page-hero { background: var(--grad); padding: 60px 6vw 66px; color: #fff; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; background: rgba(255,255,255,.06); border-radius: 50%; }
.page-hero > * { position: relative; z-index: 1; }
.breadcrumb { font-size: 12.5px; margin-bottom: 16px; opacity: .85; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero .tag { display: inline-block; background: rgba(255,255,255,.2); padding: 6px 15px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 16px; letter-spacing: .5px; }
.page-hero h1 { font-size: 44px; font-weight: 800; line-height: 1.15; max-width: 900px; margin-bottom: 14px; }
.page-hero .sub { font-size: 17px; opacity: .92; max-width: 820px; line-height: 1.6; }
.page-hero .meta { font-size: 13px; opacity: .82; margin-top: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.page-hero .meta i { opacity: .8; }

/* ARTICLE LAYOUT: wide content column + sticky sidebar */
.article-layout {
  max-width: 1500px; margin: 0 auto; padding: 54px 6vw 30px;
  display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 56px; align-items: start;
}
.article-main { min-width: 0; }
.article-aside { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 18px; }

/* LEAD IMAGE (banner) */
.lead-img { width: 100%; border-radius: 18px; display: block; height: 440px; object-fit: cover; margin-bottom: 14px; box-shadow: 0 14px 40px rgba(17,40,58,.10); }
.lead-caption { font-size: 12.5px; color: #99a; margin-bottom: 30px; font-style: italic; }

/* ARTICLE BODY typography */
.article-body { font-size: 17px; }
.article-body > p:first-of-type { font-size: 19px; line-height: 1.65; color: #3a474d; }
.article-body h2 { font-size: 29px; font-weight: 800; color: var(--dark); margin: 40px 0 14px; line-height: 1.25; padding-top: 6px; }
.article-body h2::before { content: ''; display: block; width: 46px; height: 4px; background: var(--grad); border-radius: 3px; margin-bottom: 16px; }
.article-body h3 { font-size: 21px; font-weight: 700; color: var(--dark); margin: 26px 0 8px; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 20px 22px; }
.article-body li { margin-bottom: 10px; }
.article-body strong { color: var(--dark); }
.article-body a { color: var(--blue); font-weight: 600; }
.article-body a:hover { text-decoration: underline; }
.article-body img { max-width: 100%; border-radius: 14px; }

/* INLINE IMAGE (in-body, wraps or full) */
.body-img { width: 100%; height: 340px; object-fit: cover; border-radius: 16px; margin: 8px 0 28px; box-shadow: 0 10px 30px rgba(17,40,58,.10); }

/* KEY STAT ROW */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0 30px; }
.stat-box { background: var(--light); border: 1px solid var(--border); border-radius: 14px; padding: 20px; text-align: center; }
.stat-box .num { font-size: 30px; font-weight: 800; color: var(--blue); line-height: 1; }
.stat-box .lbl { font-size: 12.5px; color: #778; margin-top: 8px; line-height: 1.4; }

/* CONDITION CHIPS */
.condition-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 22px; }
.condition-chip { background: var(--blue-light); color: var(--blue-dark); font-size: 13.5px; font-weight: 600; padding: 9px 17px; border-radius: 22px; }

/* PROCESS STEPS */
.steps { counter-reset: step; margin: 22px 0 10px; list-style: none !important; margin-left: 0 !important; }
.steps li { counter-increment: step; position: relative; padding: 0 0 24px 60px; margin-bottom: 0 !important; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; background: var(--grad); color: #fff; font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.steps li::after { content: ''; position: absolute; left: 19px; top: 46px; bottom: 4px; width: 2px; background: var(--border); }
.steps li:last-child::after { display: none; }
.steps h4 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 5px; }
.steps p { margin-bottom: 0 !important; font-size: 15.5px; }

/* INFO TABLE */
.info-table { width: 100%; border-collapse: collapse; margin: 10px 0 26px; font-size: 15px; overflow: hidden; border-radius: 12px; border: 1px solid var(--border); }
.info-table th { background: var(--green-soft); color: var(--dark); font-weight: 700; text-align: left; padding: 13px 16px; font-size: 14px; }
.info-table td { padding: 13px 16px; border-top: 1px solid var(--border); vertical-align: top; }
.info-table tr:nth-child(even) td { background: #fafcf7; }

/* PULL QUOTE */
.pullquote { border-left: 4px solid var(--blue); padding: 6px 0 6px 24px; margin: 28px 0; font-size: 21px; line-height: 1.5; color: var(--dark); font-weight: 600; font-style: italic; }

/* CALLOUT */
.callout { background: var(--green-soft); border-left: 4px solid var(--blue); border-radius: 12px; padding: 20px 24px; margin: 28px 0; font-size: 15.5px; }

/* MINI FAQ (CSS-only accordion) */
.mini-faq { margin: 18px 0 10px; }
.mini-faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.mini-faq summary { padding: 17px 22px; font-weight: 600; color: var(--dark); cursor: pointer; font-size: 16px; list-style: none; position: relative; padding-right: 46px; }
.mini-faq summary::-webkit-details-marker { display: none; }
.mini-faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--blue); font-size: 22px; font-weight: 700; transition: transform .25s; }
.mini-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.mini-faq details p { padding: 0 22px 18px; font-size: 15px; color: #667; margin: 0; }

/* CTA BOX */
.cta-box { background: var(--grad); border-radius: 20px; padding: 40px; color: #fff; text-align: center; margin-top: 46px; position: relative; overflow: hidden; }
.cta-box::after { content: ''; position: absolute; left: -60px; bottom: -80px; width: 260px; height: 260px; background: rgba(255,255,255,.06); border-radius: 50%; }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h3 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.cta-box p { opacity: .92; margin-bottom: 22px; max-width: 620px; margin-left: auto; margin-right: auto; }
.cta-box a { display: inline-block; background: #fff; color: var(--blue); font-weight: 700; padding: 14px 30px; border-radius: 30px; text-decoration: none; margin: 0 6px 8px; }
.cta-box a.ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }

/* SIDEBAR CARDS */
.aside-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: 0 4px 18px rgba(17,40,58,.05); }
.aside-card h3 { font-size: 16px; font-weight: 800; color: var(--dark); margin-bottom: 14px; letter-spacing: .3px; }
.aside-book { background: var(--grad); border: 0; color: #fff; box-shadow: 0 12px 30px rgba(30,80,153,.22); }
.aside-book h3 { color: #fff; }
.aside-book p { font-size: 14px; opacity: .92; margin-bottom: 18px; }
.aside-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: #fff; color: var(--blue); font-weight: 700; font-size: 14.5px; padding: 12px 16px; border-radius: 26px; text-decoration: none; margin-bottom: 10px; }
.aside-btn:last-child { margin-bottom: 0; }
.aside-btn.ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.aside-facts { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 13px; }
.aside-facts li { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; color: #566; line-height: 1.5; }
.aside-facts li i { color: var(--blue); margin-top: 3px; width: 16px; text-align: center; flex-shrink: 0; }
.aside-links { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.aside-links li a { display: flex; align-items: center; gap: 9px; padding: 9px 0; font-size: 14px; font-weight: 600; color: var(--dark); text-decoration: none; border-bottom: 1px solid var(--border); transition: color .2s, padding .2s; }
.aside-links li:last-child a { border-bottom: 0; }
.aside-links li a i { color: var(--blue); font-size: 12px; }
.aside-links li a:hover { color: var(--blue); padding-left: 5px; }

/* RELATED SERVICES BAND */
.related-section { background: var(--light); padding: 56px 6vw; border-top: 1px solid var(--border); }
.related-inner { max-width: 1500px; margin: 0 auto; }
.related-section h2 { font-size: 28px; font-weight: 800; color: var(--dark); margin-bottom: 26px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.related-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.09); }
.related-card i { color: var(--blue); font-size: 22px; margin-bottom: 12px; display: block; }
.related-card h3 { font-size: 16.5px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.related-card p { font-size: 13px; color: #889; line-height: 1.55; }

/* FOOTER */
footer { background: var(--blue-deep); color: #9fb8c2; padding: 38px 6vw; font-size: 13px; text-align: center; }
footer a { color: #8cc63f; text-decoration: none; }

/* BLOG HUB */
.blog-hub-section { padding: 56px 6vw; }
.blog-hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1500px; margin: 0 auto; }
.blog-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: 0 4px 18px rgba(17,40,58,.05); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(17,40,58,.12); }
.blog-card-img { height: 220px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.blog-tag { display: inline-block; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 600; padding: 4px 11px; border-radius: 20px; margin-bottom: 12px; align-self: flex-start; }
.blog-card h3 { font-size: 18px; font-weight: 700; color: var(--dark); line-height: 1.4; margin-bottom: 10px; }
.blog-card h3 a { color: inherit; text-decoration: none; }
.blog-card h3 a:hover { color: var(--blue); }
.blog-card p { font-size: 13px; color: #888; line-height: 1.6; flex: 1; }
.blog-more { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: 13px; font-weight: 600; text-decoration: none; margin-top: 14px; }

/* generic centered wrap (used by blog hub CTA) */
.wrap { max-width: 1100px; margin: 0 auto; padding: 10px 6vw 50px; }

/* DOCTOR FEATURE (About page) */
.doctor-feature { display: grid; grid-template-columns: 1.5fr 0.9fr; gap: 40px; align-items: center; margin: 22px 0 8px; }
.doctor-feature .doctor-info h3 { font-size: 26px; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.doctor-role { font-size: 15px; font-weight: 600; color: var(--blue); margin-bottom: 4px; }
.doctor-credential { font-size: 13px; color: #888; margin-bottom: 18px; }
.doctor-info p { margin-bottom: 14px; }
.doctor-points { list-style: none !important; margin: 16px 0 22px 0 !important; }
.doctor-points li { font-size: 15px; color: #555; line-height: 1.6; padding-left: 28px; position: relative; margin-bottom: 10px; }
.doctor-points li i { position: absolute; left: 0; top: 4px; color: var(--green); }
.doctor-socials { display: flex; gap: 10px; }
.doctor-socials a { width: 40px; height: 40px; background: var(--blue-light); color: var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; text-decoration: none; transition: all .2s; }
.doctor-socials a:hover { background: var(--blue); color: #fff; }
.doctor-photo { position: relative; border-radius: 20px; overflow: hidden; background: var(--grad); min-height: 320px; display: flex; align-items: flex-end; justify-content: center; }
.doctor-photo img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.doctor-badge { position: absolute; top: 16px; left: 16px; background: #fff; border-radius: 12px; padding: 9px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.15); font-size: 12px; font-weight: 700; color: var(--blue-deep); }
@media (max-width: 760px) { .doctor-feature { grid-template-columns: 1fr; gap: 22px; } .doctor-photo { min-height: 340px; order: -1; } }

/* RESPONSIVE */
@media (max-width: 1040px) {
  .article-layout { grid-template-columns: 1fr; gap: 34px; }
  .article-aside { position: static; flex-direction: column; }
}
@media (max-width: 900px) {
  .related-grid, .blog-hub-grid, .stat-row { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 31px; }
  .page-hero { padding: 42px 7vw 46px; }
  .article-layout { padding: 34px 7vw 20px; }
  nav .nav-logo img { height: 50px; }
  .lead-img { height: 250px; }
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: 25px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; box-shadow: 0 12px 24px rgba(0,0,0,.1); padding: 8px 0; border-top: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 24px; font-size: 15px; }
  .nav-cta { border-radius: 0; margin: 6px 24px 4px; text-align: center; }
}
@media (max-width: 640px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .cta-box { padding: 28px 22px; }
  .info-table { table-layout: fixed; }
  .info-table th, .info-table td { padding: 10px 10px; font-size: 13px; word-break: break-word; }
}
/* never let long words or wide content force the page to scroll sideways */
.article-body { overflow-wrap: break-word; }
.article-body img, .article-body table { max-width: 100%; }
