/* Keyan Clinics – blog article + listing mobile-friendly styles */

.blog-cards-section.blog-article-page {
  font-family: "Montserrat", "Inter Tight", sans-serif;
  padding: clamp(1.25rem, 4vw, 3rem) 0 clamp(2rem, 5vw, 4rem);
  background: #fafafa;
  overflow-x: clip;
}

.blog-article-page .container {
  max-width: 1140px;
}

.blog-article-page article {
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.blog-article-page .blog-post-hero {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: #e8eef5;
}

.blog-article-page .blog-post-hero img {
  width: 100%;
  height: auto;
  max-height: min(420px, 55vw);
  object-fit: cover;
  display: block;
}

.blog-article-page article > h1,
.blog-article-page .blog-post-title {
  font-size: clamp(1.35rem, 4.5vw, 2rem);
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  margin: 0 0 0.85rem;
}

.blog-article-page .blog-post-lead,
.blog-article-page article > p[itemprop="description"] {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1.25rem;
}

.blog-article-page .blog-post-lead a {
  color: #1a6fd4;
  font-weight: 600;
  text-decoration: none;
}

.blog-article-page .blog-post-meta {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 1rem;
}

.blog-article-page [itemprop="articleBody"] h2,
.blog-article-page .blog-post-section h2 {
  font-size: clamp(1.05rem, 3.5vw, 1.25rem);
  font-weight: 700;
  color: #111;
  margin: 1.5rem 0 0.65rem;
  line-height: 1.35;
}

.blog-article-page [itemprop="articleBody"] p,
.blog-article-page .blog-post-section p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #444;
  margin: 0 0 0.85rem;
}

.blog-article-page [itemprop="articleBody"] ul,
.blog-article-page [itemprop="articleBody"] ol,
.blog-article-page .blog-post-list {
  margin: 0.5rem 0 1rem;
  padding-left: 1.2rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #444;
}

.blog-article-page [itemprop="articleBody"] li,
.blog-article-page .blog-post-list li {
  margin-bottom: 0.45rem;
  padding-left: 0.15rem;
}

.blog-article-page .blog-post-tip,
.blog-article-page .blog-post-quote {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid #1a6fd4;
  background: #f0f5fb;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #333;
  border-radius: 0 8px 8px 0;
}

.blog-article-page .blog-post-quote {
  border-left-color: #6c757d;
  background: #f8f9fa;
}

.blog-article-page .blog-post-foot {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e4ea;
}

.blog-article-page .blog-post-disclaimer {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #666;
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: #fff8e6;
  border-radius: 8px;
  border: 1px solid #f0e0bc;
}

.blog-article-page .blog-post-cta {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #333;
}

.blog-article-page .blog-faq details {
  border: 1px solid #e0e4ea;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.65rem;
  background: #fff;
}

.blog-article-page .blog-faq summary {
  font-weight: 700;
  color: #111;
  cursor: pointer;
  font-size: 0.9375rem;
  line-height: 1.4;
  list-style-position: outside;
}

.blog-article-page .blog-faq details p {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #444;
}

.blog-article-page .blog-sidebar-widget {
  border: 1px solid #e0e4ea;
  border-radius: 10px;
  padding: 1.15rem 1rem;
  margin-bottom: 1rem;
  background: #fff;
}

.blog-article-page .blog-search-input {
  width: 100%;
  max-width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #d8dde4;
  border-radius: 8px;
  font-size: 16px; /* prevents iOS zoom */
  color: #333;
  box-sizing: border-box;
}

.blog-article-page .blog-about-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 0.85rem;
  background: linear-gradient(135deg, #1a6fd4, #1456a8);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-article-page .blog-recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-article-page .blog-recent-list li {
  padding: 0.75rem 0;
  border-bottom: 1px dashed #d8dde4;
}

.blog-article-page .blog-recent-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-article-page .blog-recent-list a {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 0.35rem;
}

.blog-article-page .blog-recent-list a:hover {
  color: #1a6fd4;
}

.blog-article-page .blog-recent-list time {
  font-size: 0.72rem;
  color: #888;
}

/* Blog listing cards */
.pbmit-blog-column-three .pbmit-blog-style-1 {
  margin-bottom: 1.5rem;
}

.pbmit-blog-column-three .pbmit-featured-wrapper img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.pbmit-blog-column-three .pbmit-post-title {
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  line-height: 1.4;
}

.pbmit-blog-column-three .pbmit-post-title a {
  word-break: break-word;
}

/* —— Mobile —— */
@media (max-width: 991.98px) {
  .blog-article-page .row.g-4.g-lg-5 {
    --bs-gutter-y: 1.5rem;
  }

  .blog-article-page aside.col-lg-4 {
    order: 2;
  }

  .blog-article-page .col-lg-8 {
    order: 1;
  }

  .blog-article-page .blog-sidebar-widget {
    padding: 1rem 0.9rem;
  }
}

@media (max-width: 767.98px) {
  .blog-cards-section.blog-article-page {
    padding: 1rem 0 2rem;
  }

  .blog-article-page .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .blog-article-page .blog-post-hero {
    border-radius: 10px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .blog-article-page .blog-post-hero img {
    max-height: 200px;
  }

  .blog-article-page article > h1,
  .blog-article-page .blog-post-title {
    font-size: 1.35rem;
    line-height: 1.35;
  }

  .blog-article-page .blog-post-lead,
  .blog-article-page article > p[itemprop="description"] {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1rem;
  }

  .blog-article-page [itemprop="articleBody"] h2 {
    font-size: 1.05rem;
    margin-top: 1.25rem;
  }

  .blog-article-page [itemprop="articleBody"] p,
  .blog-article-page [itemprop="articleBody"] ul,
  .blog-article-page [itemprop="articleBody"] ol,
  .blog-article-page .blog-post-list {
    font-size: 0.9rem;
  }

  .blog-article-page .blog-post-tip,
  .blog-article-page .blog-post-quote,
  .blog-article-page .blog-post-disclaimer {
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
  }

  .blog-article-page .blog-faq summary {
    font-size: 0.9rem;
  }

  .blog-article-page .blog-about-avatar {
    width: 72px;
    height: 72px;
    font-size: 1.15rem;
  }

  /* Listing */
  .pbmit-blog-column-three {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .pbmit-blog-column-three .pbmit-blog-style-1.col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .pbmit-blog-column-three .pbmit-featured-wrapper img {
    max-height: 190px;
  }

  .pbmit-title-bar-wrapper .pbmit-tbar-title {
    font-size: clamp(1.35rem, 6vw, 1.75rem) !important;
    line-height: 1.3;
  }

  .pbmit-footer-widget-area iframe {
    width: 100% !important;
    max-width: 100%;
    height: 180px;
  }

  .footer-style-2 {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .pbmit-footer-text-inner .row > [class*="col-"] {
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .clinic {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .blog-article-page .blog-post-hero img {
    max-height: 180px;
  }

  .sticky-button {
    bottom: 96px;
    right: 12px;
    left: auto;
    padding: 10px 12px;
    font-size: 13px;
    max-width: calc(100vw - 88px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .whatsapp-widget {
    bottom: 16px;
    right: 14px;
  }

  .whatsapp-button,
  .pulse {
    width: 52px;
    height: 52px;
  }

  .whatsapp-icon {
    width: 26px;
    height: 26px;
  }
}
