/**
 * DigeeMed blog UI — Lexend + mint/teal brand, readable article layout.
 * Scoped for listing + post templates (does not redesign service pages).
 */
:root {
  --blog-dark: #0f110f;
  --blog-muted: #3b3b3b;
  --blog-teal: #1f7a6a;
  --blog-mint: #edf7f5;
  --blog-mint-deep: #e0f2ec;
  --blog-border: #c9ddd7;
}

/* Prefer brand font on blog surfaces even if Inter/DM still linked */
.page-blog,
.page-blog body,
body.page-blog,
.blog_para,
.container.pat,
.banner_bg.blog-hero,
.main_content {
  font-family: "Lexend Deca", system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--blog-dark);
}

/* ---------- Blog listing (blog.php) ---------- */
.blog_para {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.blog_para .blog_card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 1.5rem;
  padding: 1rem 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--blog-border);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(15, 17, 15, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.blog_para .blog_card:hover {
  border-color: var(--blog-teal);
  box-shadow: 0 10px 28px rgba(31, 122, 106, 0.12);
  transform: translateY(-2px);
}

.blog_para .blog_card .image {
  margin: 0 0 0.85rem;
  overflow: hidden;
  border-radius: 10px;
  background: var(--blog-mint);
}

.blog_para .blog_card .image img,
.blog_para .blog_card img.teamget {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0 !important;
}

.blog_para .blog_card .line,
.blog_para .blog_card h2.line {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: var(--blog-dark) !important;
  margin: 0 0 0.65rem !important;
}

.blog_para .blog_card .an {
  text-decoration: none !important;
}

.blog_para .blog_card .an:hover .line,
.blog_para .blog_card .an:focus .line {
  color: var(--blog-teal) !important;
}

.blog_para .blog_card p {
  flex: 1 1 auto;
  margin: 0 0 1rem;
  color: var(--blog-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.blog_para .blog_card .btn_blog {
  margin-top: auto !important;
}

.blog_para .blog_card .blog_btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0;
  color: var(--blog-teal) !important;
  border-bottom: 2px solid var(--blog-teal) !important;
  font-weight: 700;
  text-decoration: none !important;
}

.blog_para .blog_card .blog_btn:hover {
  color: var(--blog-dark) !important;
  border-bottom-color: var(--blog-dark) !important;
}

.top-hading {
  font-family: "Lexend Deca", system-ui, sans-serif !important;
  color: var(--blog-dark) !important;
}

/* ---------- Blog post article ---------- */
.container.pat {
  padding-top: 1.75rem;
  padding-bottom: 2.5rem;
  max-width: 1140px;
}

.container.pat .main_content,
.blog-article-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--blog-muted);
}

.container.pat .main_content h1,
.container.pat .main_content h2,
.container.pat .main_content h3,
.container.pat .main_content h4,
.banner_bg.blog-hero h1,
.blog-article-body h1,
.blog-article-body h2,
.blog-article-body h3,
.blog-article-body h4 {
  color: var(--blog-dark) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.container.pat .main_content h2,
.blog-article-body h2,
.anker {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem) !important;
}

.container.pat .main_content h3,
.blog-article-body h3 {
  font-size: 1.15rem !important;
}

.container.pat .main_content p,
.blog-article-body p {
  margin-bottom: 1rem;
}

.container.pat .main_content ul,
.container.pat .main_content ol,
.blog-article-body ul,
.blog-article-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.container.pat .main_content li,
.blog-article-body li {
  margin-bottom: 0.45rem;
}

.container.pat .main_content img,
.blog-article-body img,
.container.pat > .row > .col-lg-8 > img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0.5rem 0 1.25rem;
}

.container.pat .linktext,
.blog-article-body .linktext,
.main_content a.linktext {
  color: var(--blog-teal) !important;
  font-weight: 600;
  text-decoration: none;
}

.container.pat .linktext:hover,
.blog-article-body .linktext:hover {
  text-decoration: underline;
  color: var(--blog-dark) !important;
}

/* Hero strip for newer posts */
.banner_bg.blog-hero,
section.banner_bg {
  background-color: var(--blog-mint-deep) !important;
  background-image: none !important;
}

.banner_bg.blog-hero .container,
section.banner_bg > .container {
  max-width: 1140px;
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

.banner_bg h1,
.blog-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.35rem) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin-bottom: 0.75rem;
}

.blog-hero .para,
.banner_bg .para {
  color: var(--blog-muted) !important;
}

/* Sidebar form card alignment */
.sidesticky .form_box,
.container.pat .form_box,
.banner_bg .form_box {
  background: #fff;
  border: 1px solid var(--blog-border);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 6px 18px rgba(15, 17, 15, 0.08);
}

.sidesticky {
  top: 88px;
}

/* Blog CTA under H1 */
.blog-cta-box {
  text-align: left;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* Legacy post title strip — match mint brand */
body.page-blog .slider-area,
body.page-blog .container-xxl.slider-area {
  background: linear-gradient(180deg, var(--blog-mint-deep) 0%, #f7fbfa 100%);
  padding: 1.75rem 1.25rem 1.5rem !important;
  border-bottom: 1px solid var(--blog-border);
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

body.page-blog .slider-area .top-hading {
  font-size: clamp(1.45rem, 3.2vw, 2.05rem) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin: 0 auto 0.85rem !important;
  max-width: 42rem;
  padding: 0 0.5rem;
}

/* Listing + article breathing room under fixed header */
body.page-blog .blog_para {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
  max-width: 1140px;
}

body.page-blog .container.pat {
  padding: 1.5rem 1rem 2.5rem !important;
  max-width: 1140px;
}

body.page-blog .blog_para .row {
  --bs-gutter-x: 1.25rem;
  --bs-gutter-y: 1rem;
}

body.page-blog .blog_para .blog_card {
  margin-bottom: 0;
}

body.page-blog .blog-cta-box {
  margin-top: 0.75rem;
  text-align: center;
}

body.page-blog .main_content,
body.page-blog .blog-article-body {
  max-width: 46rem;
}

@media (max-width: 991px) {
  body.page-blog .slider-area,
  body.page-blog .container-xxl.slider-area {
    padding: 1.25rem 1rem 1.15rem !important;
  }
}

/* Related cluster block */
body.page-blog .cluster-links .bg_gray_theme,
.page-blog .cluster-links .bg_gray_theme {
  background: var(--blog-mint) !important;
  border: 1px solid var(--blog-border);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  box-shadow: none;
}

body.page-blog .cluster-links h2,
body.page-blog .cluster-links .h5 {
  font-family: "Lexend Deca", system-ui, sans-serif;
  color: var(--blog-dark) !important;
  font-weight: 700;
}

body.page-blog .cluster-links .linktext {
  color: var(--blog-teal) !important;
  font-weight: 600;
  text-decoration: none;
}

body.page-blog .cluster-links .linktext:hover,
body.page-blog .cluster-links .linktext:focus {
  color: var(--blog-dark) !important;
  text-decoration: underline;
}

/* Listing grid breathing room */
.blog_para > .row {
  row-gap: 0.25rem;
}

.blog_para .blog_card:focus-within {
  border-color: var(--blog-teal);
  box-shadow: 0 10px 28px rgba(31, 122, 106, 0.12);
}

/* Soft page canvas */
body.page-blog {
  background: #fafcfb;
}

/* Blog listing page: clear title zone under fixed header */
body.page-blog > section:first-of-type,
body.page-blog main#main-content > section:first-of-type {
  margin: 0;
}

body.page-blog .blog_para .blog_card .an,
body.page-blog .blog_para .blog_card .an:hover,
body.page-blog .blog_para .blog_card .an:focus {
  text-decoration: none !important;
  color: inherit !important;
}

body.page-blog .blog_para .blog_card .line {
  color: var(--blog-dark) !important;
  text-decoration: none !important;
}

body.page-blog .blog_para .col-lg-4.blog_card,
body.page-blog .blog_para .blog_card.col-lg-4 {
  display: flex;
  flex-direction: column;
}

@media (max-width: 991px) {
  .sidesticky {
    position: static !important;
    margin-top: 1.5rem;
  }

  .blog_para .blog_card img.teamget,
  .blog_para .blog_card .image img {
    height: 180px;
  }
}

@media (max-width: 575px) {
  .container.pat {
    padding-top: 1.25rem;
    padding-bottom: 1.75rem;
  }

  .blog_para .blog_card {
    padding: 0.85rem;
  }

  .banner_bg.blog-hero .container,
  section.banner_bg > .container {
    padding-top: 1.35rem !important;
    padding-bottom: 1.35rem !important;
  }
}
