/* ================================
   SHARED BLOG CONTAINER WIDTHS
================================ */

.blog-archive-header,
.blog-hero,
.blog-layout,
.blog-archive-list,
.blog-archive-cta,
.blog-toc-mobile,
.blog-related-posts {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Headings / base text for blog hero + archive */
.blog-archive-header h1,
.blog-hero h1 {
  font-size: 2.55rem;
  margin-bottom: 0.75rem;
  line-height: 1.28;
  color: #1f2937;
  font-weight: 700;
}

.blog-archive-header p,
.blog-hero p {
  max-width: 700px;
  color: #4a5568;
  font-size: 1.08rem;
  line-height: 1.8;
}

/* ================================
   BLOG ARCHIVE PAGE
================================ */

.blog-archive-header {
  padding: 2.8rem 1.5rem 1.2rem;
}

.blog-archive-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem 1.5rem;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  border: 1px solid #cbd5e0;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #f7fafc;
  font-size: 0.85rem;
  cursor: pointer;
}

.filter-pill.active {
  background: #0EA5E9;
  color: #fff;
  border-color: #0EA5E9;
}

.blog-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-search input {
  padding: 0.45rem 0.6rem;
  border-radius: 4px;
  border: 1px solid #cbd5e0;
  min-width: 200px;
}

.blog-search button {
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  background: #0EA5E9;
  color: #fff;
  cursor: pointer;
}

.blog-archive-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  padding-bottom: 2.8rem;
}

.blog-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-card-image {
  min-height: 160px;
  background: linear-gradient(135deg, #0EA5E9, #22C55E);
  position: relative;
}

.blog-card-image span {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #0f172a;
  color: #fff;
  padding: 0.25rem 0.55rem;
  font-size: 0.7rem;
  border-radius: 999px;
}

.blog-card-content {
  padding: 1.3rem 1.3rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.blog-card-category {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0EA5E9;
  text-transform: uppercase;
}

.blog-card-title a {
  font-size: 1.18rem;
  text-decoration: none;
  color: #1f2933;
  line-height: 1.35;
  font-weight: 700;
}

.blog-card-excerpt {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.6;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #718096;
}

.blog-card-link {
  margin-top: 0.3rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: #0EA5E9;
  text-decoration: none;
}

/* Bottom CTA band */
.blog-archive-cta {
  padding: 2.2rem 1.5rem 3rem;
}

.blog-archive-cta-inner {
  background: linear-gradient(135deg, #0EA5E9, #22C55E);
  border-radius: 14px;
  padding: 2rem;
  color: #f9fafb;
  text-align: center;
}

.blog-archive-cta-inner h2 {
  margin-bottom: 0.6rem;
  font-size: 1.8rem;
}

.blog-archive-cta-inner p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.blog-archive-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.btn-primary,
.btn-secondary,
.btn-link {
  display: inline-block;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-size: 0.92rem;
  text-decoration: none;
}

.btn-primary {
  background: #ffffff;
  color: #0EA5E9;
  font-weight: 600;
}

.btn-secondary {
  background: transparent;
  border: 1px solid #e5e7eb;
  color: #f9fafb;
}

/* ================================
   SINGLE BLOG PAGE
================================ */

/* Hero */
.blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 2.3rem;
  align-items: center;
  padding: 2.8rem 1.5rem 1.5rem;
}

.blog-hero-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  max-height: 300px;
}

.blog-category {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0EA5E9;
  text-transform: uppercase;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #718096;
  margin-top: 0.5rem;
}

/* MAIN LAYOUT */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.6fr) minmax(280px, 1.4fr);
  gap: 1.9rem;
  padding: 1.7rem 1.5rem 3.2rem;
}

/* TOC */
/* ==================================================
   SIDEBAR (STAYS VISIBLE)
================================================== */

.blog-sidebar {
  position: sticky;
  top: 110px;
  align-self: flex-start;
}

.blog-toc {
  background: #f7fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}

.blog-toc h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.6rem;
}

.blog-toc ul {
  list-style: none;
}

.blog-toc li {
  margin-bottom: 0.4rem;
}

.blog-toc a {
  text-decoration: none;
  font-size: 0.88rem;
  color: #1f2937;
}

.blog-toc a:hover {
  color: #0EA5E9;
}

/* CTA */
.sidebar-cta {
  background: #0EA5E9;
  color: #ffffff;
  border-radius: 16px;
  padding: 1.4rem;
  text-align: center;
}

.sidebar-cta a {
  display: inline-block;
  margin-top: 0.8rem;
  background: #ffffff;
  color: #0EA5E9;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

/* ================================
   READABILITY UPGRADE
================================ */

.blog-content {
  background: #ffffff;
  border-radius: 14px;
  padding: 2rem 2rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  line-height: 1.9;
  font-size: 18px;
  color: #374151;
}

/* Paragraphs */
.blog-content p {
  margin-bottom: 20px;
}

/* Sections */
.blog-content section {
  margin-bottom: 48px;
}

/* Headings */
.blog-content h2 {
  margin-top: 40px;
  margin-bottom: 18px;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1f2937;
}

.blog-content h3 {
  margin-top: 26px;
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
}

/* Lists */
.blog-content ul,
.blog-content ol {
  margin: 0 0 20px 25px;
  padding-left: 5px;
}

.blog-content li {
  margin-bottom: 10px;
  line-height: 1.75;
}

/* Links */
.blog-content a {
  text-decoration: none;
  color: #0EA5E9;
  font-weight: 500;
}

.blog-content a:hover {
  text-decoration: underline;
}

/* ================================
   TABLE STYLING (OPTION B)
================================ */

.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 1rem;
  background: #ffffff;
  border: 1px solid #d1d5db;
}

.blog-content table th {
  background: #1f2937;
  color: #ffffff;
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
}

.blog-content table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
}

.blog-content table tr:nth-child(even) {
  background: #f3f4f6;
}

/* CTA */
.blog-sticky-cta {
  background: #0EA5E9;
  color: #f9fafb;
  border-radius: 14px;
  padding: 1.6rem 1.4rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.blog-sticky-cta h2 {
  font-size: 1.25rem;
}

.blog-sticky-cta .btn-primary {
  background: #ffffff;
  color: #0EA5E9;
  width: 100%;
  margin-bottom: 0.5rem;
  text-align: center;
}

/* RELATED POSTS */
.blog-related-posts {
  margin-top: 2.3rem;
}

.blog-related-posts h2 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.related-card {
  background: #f7fafc;
  padding: 0.9rem 1rem;
  border-radius: 8px;
}

.related-card a {
  text-decoration: none;
  font-size: 0.92rem;
  color: #0f172a;
}

/* ================================
   MOBILE / TABLET
================================ */

.blog-toc-mobile {
  display: none;
  padding: 0 1.5rem 0.6rem;
}

.blog-toc-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7fafc;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}

.blog-toc-collapsible {
  margin-top: 0.6rem;
  display: none;
}

.blog-toc-desktop {
  display: block;
}

@media (max-width: 960px) {
  .blog-hero {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .blog-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-sidebar-inner {
    position: static;
  }

  .blog-toc-mobile {
    display: block;
  }

  .blog-toc-desktop {
    display: none;
  }

  .blog-content {
    padding: 1.4rem 1.4rem;
    font-size: 17px;
  }
}

@media (max-width: 640px) {
  .blog-content {
    padding: 1.2rem 1.25rem;
    font-size: 16.5px;
  }

  .blog-content h2 {
    font-size: 1.35rem;
  }

  .blog-content h3 {
    font-size: 1.13rem;
  }

  .blog-content p,
  .blog-card-excerpt {
    line-height: 1.78;
  }

  .blog-archive-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-search {
    width: 100%;
  }

  .blog-search input {
    width: 100%;
  }
}

/* ==================================================
   IMAGES (NO HORIZONTAL SCROLL)
================================================== */

.content-image {
  margin: 2.5rem 0;
}

.content-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

/* ==================================================
   FOOTER – FINAL HEALTHCARE VERSION
================================================== */

.footer {
  background: #0b3c5d;
  color: #e5f4f3;
  padding: 3.5rem 1.5rem 1.2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}

/* Headings */
.footer h3,
.footer h4 {
  color: #ffffff;
  margin-bottom: 0.9rem;
  font-weight: 600;
}

/* Text */
.footer p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #d1f0ee;
}

/* Links */
.footer a {
  color: #d1f0ee;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer a:hover {
  color: #7dd3c7;
}

/* ==================================================
   SERVICES & AREAS (NO BULLETS VERSION)
================================================== */

.footer-links ul,
.footer-countries ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-links li,
.footer-countries li {
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  color: #d1f0ee;
  position: relative;
  padding-left: 0; /* remove indent */
}

/* Ensure no pseudo bullets exist */
.footer-links li::before,
.footer-countries li::before {
  content: none;
  display: none;
}


/* ==================================================
   CONTACT
================================================== */

.footer-contact p {
  margin-bottom: 0.45rem;
}

/* ==================================================
   FOOTER BOTTOM
================================================== */

.footer-bottom {
  margin-top: 2.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 0.85rem;
  color: #c7ebe8;
}

/* ==================================================
   FOOTER – MOBILE RESPONSIVENESS FIX
================================================== */

@media (max-width: 480px) {

  /* Safer column sizing for small screens */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Reduce side padding slightly */
  .footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Prevent list text from pushing width */
  .footer-links li,
  .footer-countries li {
    padding-left: 0.8rem;
    word-break: break-word;
  }
}

body {
  overflow-x: hidden;
  /* SAFE: does NOT break sticky */
  background: #f8fafc;
  color: #1f2937;
}





