/* Shared individual-blog layout. Content itself remains WordPress-editor controlled. */
body.single-post,
body.single-post #page,
body.single-post #content,
body.single-post .site-content,
body.single-post .site-main { background: #fff !important; color: #243a50; }

body.single-post .wrap { width: min(1130px, calc(100% - 40px)); margin-inline: auto; }
body.single-post .site-footer { margin-top: 0; }

.single-post-hero { background: #fcf0f5; padding: 58px 0 54px; text-align: center; }
.single-post-hero h1 { max-width: 980px; margin: 0 auto 13px; color: #273647; font-size: clamp(2rem, 4.1vw, 3.05rem); line-height: 1.12; letter-spacing: -.045em; font-weight: 750; }
.single-breadcrumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; color: #ce3978; font-size: .79rem; font-weight: 700; }
.single-breadcrumbs a { color: inherit; text-decoration: none; }
.single-breadcrumbs a:hover { color: #9f235a; text-decoration: underline; text-underline-offset: 3px; }

.single-post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; padding: 70px 0 88px; }
.single-post-article { min-width: 0; }
.single-featured-image { display: block; width: 100%; height: auto; border: 1px solid #f1dde7; border-radius: 18px; box-shadow: 0 16px 34px rgba(44, 33, 52, .11); }
.single-post-date { display: flex; align-items: center; gap: 8px; margin: 28px 0 17px; color: #a35a78; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.single-post-date .single-post-date__icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1px solid #f2c9db; border-radius: 6px; color: #d33173; }
.single-post-date .single-post-date__icon svg { width: 12px; height: 12px; }
.single-post-title { margin: 0 0 18px; color: #263c50; font-size: clamp(1.5rem, 2.7vw, 2.05rem); line-height: 1.22; letter-spacing: -.025em; }

.single-post-content { color: #61758d; font-size: .98rem; line-height: 1.78; }
.single-post-content > *:first-child { margin-top: 0; }
.single-post-content h2 { scroll-margin-top: 120px; margin: 47px 0 16px; color: #243b50; font-size: clamp(1.48rem, 2.45vw, 2rem); line-height: 1.25; letter-spacing: -.025em; }
.single-post-content h3 { margin: 33px 0 12px; color: #2a4257; font-size: 1.26rem; line-height: 1.32; }
.single-post-content h4 { margin: 25px 0 10px; color: #2a4257; font-size: 1.08rem; }
.single-post-content p { margin: 0 0 22px; }
.single-post-content ul,
.single-post-content ol { margin: 0 0 23px; padding-left: 1.2rem; }
.single-post-content li { margin: 6px 0; }
.single-post-content a { color: #c93473; font-weight: 700; text-decoration-color: rgba(201, 52, 115, .45); text-underline-offset: 3px; }
.single-post-content a:hover { color: #8d1e50; }
.single-post-content strong { color: #32475d; }

.single-post-sidebar { display: grid; gap: 22px; position: sticky; top: 30px; }
.single-widget { padding: 24px 22px; overflow: hidden; background: #fff; border: 1px solid #f5e7ed; border-radius: 18px; box-shadow: 0 12px 30px rgba(57, 38, 56, .08); transition: box-shadow .22s ease; }
.single-widget:hover { box-shadow: 0 16px 34px rgba(57, 38, 56, .13); }
.single-widget h2 { position: relative; margin: 0 0 20px; padding-bottom: 12px; color: #2a4054; font-size: 1.36rem; line-height: 1.1; }
.single-widget h2::after { position: absolute; bottom: 0; left: 0; width: 38px; height: 2px; content: ''; background: #d63578; }
.single-widget-label { margin: 0 0 10px; color: #687a8d; font-size: .72rem; font-weight: 700; }
.single-search-form { display: grid; grid-template-columns: minmax(0, 1fr) 108px; gap: 8px; }
.single-search-form input,
.single-search-here-form input { min-width: 0; height: 39px; padding: 0 11px; border: 1px solid #f0dfe7; border-radius: 9px; color: #32475d; outline: none; }
.single-search-form input:focus,
.single-search-here-form input:focus { border-color: #d73478; box-shadow: 0 0 0 3px rgba(215, 52, 120, .12); }
.single-search-form button,
.single-search-here-form button { border: 0; border-radius: 9px; background: #c73576; color: #fff; font-size: .78rem; font-weight: 800; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.single-search-form button:hover,
.single-search-here-form button:hover { background: #a82761; transform: translateY(-1px); }
.single-link-list,
.single-recent-cards { margin: 0; padding: 0; list-style: none; }
.single-link-list li { border-bottom: 1px solid #f5edf1; }
.single-link-list li:last-child { border-bottom: 0; }
.single-link-list a { display: block; padding: 10px 0; color: #61768b; font-size: .78rem; line-height: 1.2; text-decoration: none; transition: color .2s ease, padding-left .2s ease; }
.single-link-list a:hover { padding-left: 4px; color: #c93473; }
.single-muted { margin: 0; color: #94a2b0; font-size: .8rem; }
.single-search-here-form { display: grid; grid-template-columns: minmax(0, 1fr) 43px; }
.single-search-here-form input { border-radius: 8px 0 0 8px; }
.single-search-here-form button { border-radius: 0 8px 8px 0; font-size: 1.05rem; }
.single-recent-cards { display: grid; gap: 14px; }
.single-recent-cards li { padding-bottom: 14px; border-bottom: 1px solid #f5edf1; }
.single-recent-cards li:last-child { padding-bottom: 0; border-bottom: 0; }
.single-recent-cards a { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 11px; align-items: center; color: #2c4255; text-decoration: none; }
.single-recent-cards img,
.single-thumb-placeholder { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #f8eaf0; }
.single-recent-cards strong { display: block; font-size: .75rem; line-height: 1.2; transition: color .2s ease; }
.single-recent-cards small { display: block; margin-top: 5px; color: #9ba8b3; font-size: .65rem; }
.single-recent-cards a:hover strong { color: #c93473; }
.single-tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.single-tag-list a { padding: 6px 8px; border-radius: 7px; background: #faf7f8; color: #748395; font-size: .7rem; line-height: 1.1; text-decoration: none; transition: background .2s ease, color .2s ease; }
.single-tag-list a:hover { background: #fdebf3; color: #bd2d6b; }

.single-post-toc { margin: 24px 0 34px; border-top: 1px solid #efdee6; border-bottom: 1px solid #efdee6; background: transparent; }
.single-post-toc__toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 14px 0; border: 0; background: transparent; color: #243b50; font-family: var(--itp-copy, Rubik, sans-serif); font-size: .78rem; font-weight: 600; letter-spacing: .02em; line-height: 1.3; cursor: pointer; text-align: left; }
.single-post-toc__icon { display: grid; place-items: center; width: 18px; height: 18px; color: #c93473; font-family: var(--itp-copy, Rubik, sans-serif); font-size: 1.15rem; font-weight: 400; line-height: 1; transition: transform .22s ease, color .22s ease; }
.single-post-toc__panel { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .34s ease, opacity .22s ease; }
.single-post-toc__panel > ol { min-height: 0; margin: 0; padding: 0 0 0 18px; overflow: hidden; border-left: 2px solid #f5d7e4; }
.single-post-toc.is-open .single-post-toc__panel { grid-template-rows: 1fr; opacity: 1; }
.single-post-toc.is-open .single-post-toc__panel > ol { padding-bottom: 15px; }
.single-post-toc.is-open .single-post-toc__icon { color: #9b2458; transform: rotate(45deg); }
.single-post-toc li { margin: 5px 0; padding-left: 2px; }
.single-post-toc a { color: #60758c; font-family: var(--itp-copy, Rubik, sans-serif); font-size: .79rem; font-weight: 400; line-height: 1.45; text-decoration: none; }
.single-post-toc a:hover { color: #c93473; text-decoration: underline; text-underline-offset: 3px; }

.post-faq { display: grid; gap: 10px; margin: 20px 0 36px; }
.post-faq__item { overflow: hidden; border: 1px solid #f0dce6; border-radius: 13px; background: #fff; }
.post-faq__item summary { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 17px 19px; color: #2c4358; font-size: 1rem; font-weight: 800; line-height: 1.35; cursor: pointer; list-style: none; }
.post-faq__item summary::-webkit-details-marker { display: none; }
.post-faq__item summary::after { flex: 0 0 auto; content: '+'; color: #cf3678; font-size: 1.45rem; line-height: 1; transition: transform .28s ease; }
.post-faq__item[open] summary { background: #fff8fb; }
.post-faq__item[open] summary::after { transform: rotate(45deg); }
.post-faq__answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.post-faq__item[open] .post-faq__answer { grid-template-rows: 1fr; }
.post-faq__answer-inner { min-height: 0; padding: 0 19px; overflow: hidden; }
.post-faq__item[open] .post-faq__answer-inner { padding-bottom: 19px; }
.post-faq__answer-inner > *:last-child { margin-bottom: 0; }

.itp-blog-cta { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin: 35px 0; padding: 20px 22px; border: 1px solid #f1dce7; border-radius: 16px; box-shadow: 0 10px 24px rgba(76, 36, 58, .06); }
.itp-blog-cta--telemedicine { background: linear-gradient(115deg, #effbfc, #fff); }
.itp-blog-cta--preventive { background: linear-gradient(115deg, #faf3fc, #fff); }
.itp-blog-cta--appointment { background: linear-gradient(115deg, #fff1f6, #fff); }
.itp-blog-cta__copy { min-width: 0; }
.itp-blog-cta__copy p { margin: 0 0 4px; color: #ca3676; font-size: .68rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.itp-blog-cta__copy h3 { margin: 0 0 5px; color: #2b4054; font-size: 1.2rem; }
.itp-blog-cta__copy span { display: block; color: #6d8194; font-size: .84rem; line-height: 1.45; }
.itp-blog-cta > a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 999px; background: #c93474; color: #fff; font-size: .78rem; font-weight: 800; text-decoration: none; white-space: nowrap; box-shadow: 0 8px 17px rgba(188, 43, 103, .19); transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.itp-blog-cta > a b { font-size: 1rem; }
.itp-blog-cta > a:hover { background: #a82760; color: #fff; transform: translateY(-2px); box-shadow: 0 12px 22px rgba(188, 43, 103, .28); }

/* Slim appointment banner used within older blog articles. */
.single-post-content .itp-blog-cta--appointment-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; margin: 36px 0; padding: 25px 29px; overflow: hidden; border: 0; border-radius: 14px; background: linear-gradient(105deg, #243f59 0%, #2b4b67 100%); box-shadow: 0 12px 27px rgba(31, 57, 80, .17); }
.single-post-content .itp-blog-cta--appointment-card::after { position: absolute; top: -68px; right: 25%; width: 145px; height: 145px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 50%; content: ''; pointer-events: none; }
.itp-blog-cta--appointment-card .itp-blog-cta__content { position: relative; z-index: 1; min-width: 0; }
.itp-blog-cta--appointment-card .itp-blog-cta__eyebrow { margin: 0 0 5px; color: #ffb1ce; font-size: .64rem; font-weight: 850; letter-spacing: .13em; line-height: 1.25; text-transform: uppercase; }
.itp-blog-cta--appointment-card h3 { margin: 0 0 5px; color: #fff; font-family: Poppins, Rubik, sans-serif; font-size: clamp(1.2rem, 2.1vw, 1.5rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.16; }
.itp-blog-cta--appointment-card .itp-blog-cta__message { margin: 0; color: rgba(255, 255, 255, .72); font-size: .82rem; line-height: 1.5; }
.itp-blog-cta--appointment-card .itp-blog-cta__action { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 176px; }
.itp-blog-cta--appointment-card .itp-blog-cta__booking-note { color: rgba(255, 255, 255, .65); font-size: .65rem; font-weight: 650; line-height: 1.2; }
.single-post-content .itp-blog-cta--appointment-card .itp-blog-cta__button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; margin: 0; padding: 11px 16px; border-radius: 999px; background: #fff; box-shadow: 0 8px 16px rgba(13, 27, 42, .18); color: #243f59; font-size: .68rem; font-weight: 800; letter-spacing: .045em; line-height: 1; text-decoration: none; text-transform: uppercase; white-space: nowrap; transition: background .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease; }
.single-post-content .itp-blog-cta--appointment-card .itp-blog-cta__button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.single-post-content .itp-blog-cta--appointment-card .itp-blog-cta__button:hover { background: #c93473; box-shadow: 0 11px 21px rgba(13, 27, 42, .28); color: #fff; transform: translateY(-2px); }

@media (max-width: 900px) {
    .single-post-layout { grid-template-columns: minmax(0, 1fr); gap: 35px; padding-top: 48px; }
    .single-post-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    body.single-post .wrap { width: min(100% - 28px, 1130px); }
    .single-post-hero { padding: 43px 0 39px; }
    .single-post-layout { padding-bottom: 58px; }
    .single-post-sidebar { grid-template-columns: 1fr; }
    .single-widget { padding: 21px 18px; border-radius: 15px; }
    .single-post-content { font-size: .94rem; }
    .itp-blog-cta { align-items: flex-start; flex-direction: column; gap: 14px; padding: 18px; }
    .itp-blog-cta > a { width: 100%; justify-content: center; }
    .single-post-content .itp-blog-cta--appointment-card { grid-template-columns: 1fr; gap: 17px; padding: 23px 21px; }
    .itp-blog-cta--appointment-card .itp-blog-cta__message { font-size: .8rem; }
    .itp-blog-cta--appointment-card .itp-blog-cta__action { align-items: stretch; min-width: 0; }
    .itp-blog-cta--appointment-card .itp-blog-cta__booking-note { text-align: center; }
    .single-post-content .itp-blog-cta--appointment-card .itp-blog-cta__button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .single-post-toc__panel,
    .post-faq__answer,
    .itp-blog-cta > a { transition: none; }
}
