/* Articles – editorial magazine layout */

.blog-page .site-header {
  background: rgba(247, 250, 249, 0.94);
}

.blog-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: clamp(260px, 38vw, 380px);
  display: grid;
  align-items: center;
  justify-items: center;
  padding: clamp(3.4rem, 7vw, 5rem) 1.25rem 3rem;
  text-align: center;
}
.blog-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 28, 32, 0.55) 0%, rgba(8, 52, 56, 0.72) 100%),
    url("https://quwarehab.com/wp-content/uploads/2026/07/hero-clinic-DPQxmMiV.jpg") center 28% / cover no-repeat;
}
.blog-hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  margin-inline: auto;
  display: grid;
  justify-items: center;
}
.blog-breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  align-items: center;
  margin: 0 0 1rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: .86rem;
  color: rgba(255, 255, 255, 0.84);
}
.blog-breadcrumb a {
  color: #d7f1ee;
  font-weight: 600;
}
.blog-breadcrumb a:hover { color: #fff; }
.blog-crumb-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}
.blog-eyebrow {
  margin: 0 0 .55rem;
  color: #9fd5d1;
  font-weight: 600;
  letter-spacing: .04em;
  font-size: .92rem;
}
.blog-hero h1 {
  margin: 0 0 .85rem;
  font-family: var(--display);
  font-size: clamp(1.65rem, 1.1rem + 2.1vw, 2.55rem);
  line-height: 1.4;
  font-weight: 700;
  max-width: 15em;
}
.blog-hero-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(.96rem, .88rem + .35vw, 1.1rem);
  line-height: 1.85;
  max-width: 34em;
}

.blog-toolbar {
  margin-top: -1.6rem;
  position: relative;
  z-index: 2;
  padding: 0 0 1.5rem;
}
.blog-toolbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(8, 68, 74, 0.08);
}
.blog-toolbar-label {
  margin: 0;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  flex: 1;
  justify-content: flex-start;
}
.blog-filters button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: .5rem .9rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: .86rem;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.blog-filters button:hover {
  border-color: rgba(15, 107, 115, 0.35);
  color: var(--teal-deep);
}
.blog-filters button.is-active {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: #fff;
}

.blog-layout {
  display: grid;
  gap: 2rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.blog-featured {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background: #fff;
}
.blog-featured-media {
  position: relative;
  min-height: 220px;
  overflow: hidden;
}
.blog-featured-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: center 25%;
}
.blog-featured-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 52, 56, 0.35));
  pointer-events: none;
}
.blog-featured-body {
  padding: 1.35rem 1.25rem 1.5rem;
  display: grid;
  align-content: center;
}
.blog-featured-body h2 {
  margin: 0 0 .55rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.05rem + 1vw, 1.85rem);
  line-height: 1.4;
}
.blog-featured-body h2 a:hover { color: var(--teal-deep); }
.blog-featured-body p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  line-height: 1.75;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .9rem;
  align-items: center;
  margin-bottom: .7rem;
  font-size: .84rem;
  color: var(--ink-soft);
}
.blog-meta span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.blog-tag {
  padding: .28rem .7rem;
  border-radius: 999px;
  background: rgba(15, 107, 115, 0.1);
  color: var(--teal-deep);
  font-weight: 600;
}

.blog-grid {
  display: grid;
  gap: 1rem;
}
.blog-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 107, 115, 0.28);
  box-shadow: 0 16px 36px rgba(8, 68, 74, 0.08);
}
.blog-card.is-hidden { display: none; }
.blog-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.15rem .35rem;
}
.blog-card-num {
  font-family: var(--display);
  font-size: .9rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: .04em;
}
.blog-card-body {
  padding: .35rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.blog-card-body h3 {
  margin: 0 0 .5rem;
  font-family: var(--display);
  font-size: 1.12rem;
  line-height: 1.45;
}
.blog-card-body h3 a:hover { color: var(--teal-deep); }
.blog-card-body p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: .95rem;
  flex: 1;
}
.blog-card-body .text-link {
  margin-top: auto;
}

.blog-aside {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.blog-aside-card {
  padding: 1.25rem 1.2rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #0a4c52, #0f6b73 60%, #08444a);
  color: #fff;
}
.blog-aside-card h3 {
  margin: 0 0 .55rem;
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.35;
}
.blog-aside-card p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  font-size: .95rem;
}
.blog-aside-card .btn { width: 100%; }
.blog-aside-list {
  padding: 1.2rem 1.15rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.blog-aside-list h3 {
  margin: 0 0 .85rem;
  font-family: var(--display);
  font-size: 1.1rem;
}
.blog-aside-list ul {
  display: grid;
  gap: .7rem;
}
.blog-aside-list a {
  display: block;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.5;
  transition: color .2s ease;
}
.blog-aside-list a:hover { color: var(--teal-deep); }

/* Article reading */
.article-stage {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  background:
    linear-gradient(180deg, rgba(215, 235, 232, 0.35), rgba(238, 244, 243, 0.15));
}
.article-shell {
  display: grid;
  gap: 1.5rem;
  max-width: 780px;
  margin-inline: auto;
}
.article-read {
  padding: 1.5rem 1.25rem 1.75rem;
  border-radius: calc(var(--radius) + 4px);
  background: #fff;
  border: 1px solid var(--line);
}
.article-read-kicker {
  margin: 0 0 .65rem;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .9rem;
  align-items: center;
  font-size: .86rem;
  color: var(--ink-soft);
}
.article-read h2 {
  margin: 0 0 .75rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.1rem);
  line-height: 1.4;
}
.article-read-meta {
  margin: 0 0 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .92rem;
}
.article-read-body p {
  margin: 0 0 1.05rem;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.9;
}
.article-read-body h3 {
  margin: 1.5rem 0 .65rem;
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--teal-deep);
}
.article-read-body ul {
  margin: 0 0 1.15rem;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.article-read-body li {
  position: relative;
  padding-inline-start: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.article-read-body li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .7em;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--teal-mid);
}
.article-tip {
  margin: 1.35rem 0;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(15, 107, 115, 0.07);
  border: 1px solid rgba(15, 107, 115, 0.14);
}
.article-tip strong {
  display: block;
  margin-bottom: .35rem;
  font-family: var(--display);
  color: var(--teal-deep);
}
.article-tip p { margin: 0; color: var(--ink-soft); }

.nav a[aria-current="page"] {
  color: var(--teal-deep);
  font-weight: 700;
}

@media (max-width: 480px) {
  .blog-hero {
    min-height: auto;
    padding: 3.2rem 1rem 2.4rem;
  }
  .blog-hero h1 {
    font-size: clamp(1.45rem, 6.4vw, 1.85rem);
    max-width: none;
  }
  .blog-toolbar { margin-top: -1.25rem; }
  .blog-toolbar-inner {
    padding: .95rem;
  }
  .blog-filters button {
    font-size: .82rem;
    padding: .45rem .75rem;
  }
  .article-read {
    padding: 1.25rem 1.05rem 1.4rem;
  }
}

@media (min-width: 768px) {
  .blog-toolbar-inner {
    padding: 1rem 1.35rem;
  }
  .blog-filters { justify-content: flex-end; }
  .blog-featured {
    grid-template-columns: 1.1fr 1.15fr;
  }
  .blog-featured-media,
  .blog-featured-media img {
    min-height: 100%;
  }
  .blog-featured-body { padding: 2rem 1.8rem; }
  .blog-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(240px, .7fr);
    align-items: start;
  }
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .blog-aside {
    position: sticky;
    top: 5.5rem;
  }
  .article-read {
    padding: 2rem 2.1rem 2.2rem;
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* —— Single article page —— */
.single-article-page .site-header {
  background: rgba(247, 250, 249, 0.94);
}

.single-article-page #main {
  overflow-x: clip;
}

.article-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: clamp(240px, 36vw, 400px);
  display: grid;
  align-items: end;
  padding: clamp(3.5rem, 7vw, 5.25rem) max(1rem, env(safe-area-inset-right)) 2.5rem max(1rem, env(safe-area-inset-left));
}

.article-hero-bg {
  position: absolute;
  inset: 0;
  background-position: center 28%;
  background-size: cover;
  background-repeat: no-repeat;
}
.article-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 28, 32, 0.5) 0%, rgba(8, 52, 56, 0.84) 55%, rgba(5, 24, 28, 0.95) 100%);
}

.article-hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 820px);
  margin-inline: auto;
  display: grid;
  justify-items: stretch;
  text-align: start;
  min-width: 0;
}

.article-hero .blog-breadcrumb {
  justify-content: flex-start;
  max-width: 100%;
  margin-bottom: 1rem;
  padding-inline: .75rem;
}
.article-hero .blog-breadcrumb [aria-current="page"] {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .9rem;
  align-items: center;
  margin: 0 0 .85rem;
  font-size: .88rem;
  color: rgba(255, 255, 255, 0.85);
}

.article-hero-kicker .blog-tag {
  background: rgba(255, 255, 255, 0.16);
  color: #e7f7f5;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.article-hero h1 {
  margin: 0 0 .85rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 1.05rem + 2vw, 2.45rem);
  line-height: 1.4;
  font-weight: 700;
  max-width: 100%;
  color: #fff;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-hero-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: .9rem;
  line-height: 1.6;
}

.article-stage-single {
  padding-top: 0;
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
  background: transparent;
}

.article-layout {
  display: grid;
  gap: 1.25rem;
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  min-width: 0;
}

.article-shell-single {
  max-width: none;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.article-shell-single .article-read {
  box-shadow: 0 18px 48px rgba(8, 68, 74, 0.1);
  color: var(--ink);
  background: #fff;
  min-width: 0;
}

.article-read-body {
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.article-read-body > *:first-child { margin-top: 0; }
.article-read-body p {
  margin: 0 0 1.05rem;
  color: var(--ink);
  font-size: clamp(1rem, .95rem + .25vw, 1.08rem);
  line-height: 1.9;
}
.article-read-body h2,
.article-read-body h3 {
  margin: 1.55rem 0 .65rem;
  font-family: var(--display);
  color: var(--teal-deep);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.article-read-body h2 {
  font-size: clamp(1.15rem, 1rem + .7vw, 1.45rem);
}
.article-read-body h3 {
  font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem);
}
.article-read-body ul,
.article-read-body ol {
  margin: 0 0 1.15rem;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.article-read-body li {
  position: relative;
  padding-inline-start: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.75;
}
.article-read-body ul > li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .7em;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--teal-mid);
}
.article-read-body a {
  color: var(--teal-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-read-body a:hover { color: var(--teal-mid); }
.article-read-body strong { color: var(--ink); }

.article-read-body img,
.article-read-body video,
.article-read-body iframe,
.article-read-body figure {
  max-width: 100%;
  height: auto;
}
.article-read-body iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
}
.article-read-body .wp-block-image,
.article-read-body .alignnone,
.article-read-body .aligncenter,
.article-read-body .alignwide {
  max-width: 100%;
  margin-inline: 0;
}
.article-read-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
}
.article-read-body pre {
  max-width: 100%;
  overflow-x: auto;
  padding: .85rem 1rem;
  border-radius: 12px;
  background: var(--mist);
}

.article-cover {
  margin: 0 0 1.5rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.article-cover img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: center 28%;
}

.article-footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .85rem 1rem;
  margin: 1.5rem 0 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.article-footer-label {
  display: block;
  margin-bottom: .4rem;
  font-size: .8rem;
  color: var(--ink-soft);
}

.article-shell-single .inline-cta {
  flex-direction: column;
  align-items: stretch;
  text-align: start;
}
.article-shell-single .inline-cta p {
  max-width: none;
}
.article-shell-single .inline-cta .btn {
  width: 100%;
}

.article-aside {
  min-width: 0;
}
.article-aside .btn {
  width: 100%;
}

.related-articles {
  padding-top: 1rem;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.related-articles .section-head {
  margin-bottom: 1.25rem;
}
.related-grid {
  margin-top: .5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.single-article-page .cta-band {
  margin-bottom: 0;
}
.single-article-page .cta-inner .hero-cta {
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
}
.single-article-page .cta-inner .hero-cta .btn {
  width: 100%;
}

.is-articles-section .nav a[href*="/articles"] {
  color: var(--teal-deep);
  font-weight: 700;
}

/* Phones */
@media (max-width: 479.98px) {
  .article-hero {
    min-height: auto;
    padding: 3.15rem .9rem 2rem;
  }
  .article-hero h1 {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
  }
  .article-hero .blog-breadcrumb [aria-current="page"] {
    display: none;
  }
  .article-hero .blog-breadcrumb .blog-crumb-sep:last-of-type {
    display: none;
  }
  .article-stage-single {
    margin-top: -1.1rem;
  }
  .article-shell-single .article-read {
    padding: 1.35rem 1.1rem 1.45rem;
    border-radius: 16px;
  }
  .article-cover img { max-height: 200px; }
  .article-footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Large phones / small tablets */
@media (min-width: 480px) and (max-width: 767.98px) {
  .article-hero {
    padding-inline: 1.15rem;
  }
  .article-shell-single .article-read {
    padding: 1.45rem 1.25rem 1.6rem;
  }
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile & tablet: clear floating WhatsApp bar */
@media (max-width: 767.98px) {
  .single-article-page .site-footer {
    padding-bottom: calc(6.75rem + env(safe-area-inset-bottom, 0px));
  }
  .single-article-page .cta-band {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  }
  .article-layout {
    gap: 1rem;
  }
}

/* Tablet portrait: still one column for reading comfort */
@media (min-width: 768px) and (max-width: 899.98px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
  .article-aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    position: static;
  }
  .article-shell-single .article-read {
    padding: 1.85rem 1.75rem 2rem;
  }
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .single-article-page .cta-inner .hero-cta {
    display: flex;
    flex-wrap: wrap;
    max-width: 36rem;
  }
  .single-article-page .cta-inner .hero-cta .btn {
    width: auto;
    flex: 1 1 auto;
  }
}

/* Desktop */
@media (min-width: 900px) {
  .article-layout {
    grid-template-columns: minmax(0, 1.75fr) minmax(220px, .68fr);
    align-items: start;
    gap: 1.75rem;
  }
  .article-aside {
    position: sticky;
    top: 5.5rem;
    display: grid;
    grid-template-columns: 1fr;
  }
  .article-shell-single .article-read {
    padding: 2.1rem 2.15rem 2.3rem;
  }
  .article-shell-single .inline-cta {
    flex-direction: row;
    align-items: center;
  }
  .article-shell-single .inline-cta .btn {
    width: auto;
    flex-shrink: 0;
  }
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .single-article-page .cta-inner .hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 38rem;
  }
  .single-article-page .cta-inner .hero-cta .btn {
    width: auto;
  }
}

@media (min-width: 1024px) {
  .article-hero-inner { width: min(100%, 920px); }
  .article-layout {
    gap: 2rem;
  }
}

@media (min-width: 1200px) {
  .article-hero {
    min-height: clamp(300px, 34vw, 420px);
  }
  .article-hero h1 {
    max-width: 18em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .single-article-page [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

