/* ==================================================
   GLOBAL RESET & BASE
================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

body {
  overflow-x: hidden;
  /* SAFE: does NOT break sticky */
  background: #f8fafc;
  color: #1f2937;
}

/* ==================================================
   HEADER / NAVBAR
================================================== */

header {
  width: 100%;
  background: #0b3c5d;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #e8ab5b;
}

/* ===============================
   PRIMARY DROPDOWN – HEALTHCARE UI (FIXED)
=============================== */

/* Required for hover stability */
.nav-links li {
  position: relative;
}

/* Invisible hover bridge (prevents flicker) */
.nav-links li::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 14px;
  /* matches visual gap */
}

/* Main dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  /* NO gap here */
  left: 0;
  margin-top: 12px;
  /* visual spacing only */
  background: #ffffff;
  list-style: none;
  padding: 0.6rem 0;
  min-width: 220px;
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(11, 60, 93, 0.18);
  border: 1px solid rgba(11, 60, 93, 0.08);
  z-index: 1500;
}

/* Dropdown links */
.dropdown li a {
  display: block;
  padding: 0.65rem 1.2rem;
  font-size: 0.95rem;
  color: #0b3c5d;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

/* Hover state */
.dropdown li a:hover {
  background: #f0f7fb;
  color: #0ea5e9;
}

/* Show dropdown */
.nav-links li:hover>.dropdown {
  display: block;
}

/* ===============================
   SECOND-LEVEL (SIDE) DROPDOWN – FIXED
=============================== */

.dropdown li {
  position: relative;
}

/* Hover bridge for side dropdown */
.dropdown li::after {
  content: "";
  position: absolute;
  top: 0;
  right: -12px;
  width: 12px;
  height: 100%;
}

/* Side dropdown */
.dropdown li>.dropdown {
  top: 0;
  left: 100%;
  margin-left: 10px;
  border-radius: 12px;
}

/* ===============================
   HAMBURGER – MODERN STYLE
=============================== */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  width: 32px;
  height: 28px;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: #ffffff;
  border-radius: 4px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate to X */
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}


/* ===============================
   MOBILE NAV – FIXED & CLEAN
=============================== */

@media (max-width: 768px) {

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: #0b3c5d;
    /* healthcare dark blue */
    flex-direction: column;
    width: 280px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    z-index: 2000;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  }

  .nav-links.open {
    max-height: 600px;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links>li>a {
    padding: 0.9rem 1.2rem;
    color: #ffffff;
    font-weight: 600;
  }

  /* Mobile dropdown */
  .nav-links .dropdown {
    position: static;
    max-height: 0;
    overflow: hidden;
    background: #ffffff;
    transition: max-height 0.3s ease;
    border-radius: 8px;
    margin: 0 0.8rem 0.6rem;
  }

  .nav-links li.open>.dropdown {
    max-height: 400px;
  }

  .dropdown li a {
    padding: 0.7rem 1rem;
    color: #0b3c5d;
    font-size: 0.9rem;
  }

  .hamburger {
    display: flex;
  }
}



/* ==================================================
   BREADCRUMBS
================================================== */

.breadcrumb {
  max-width: 1250px;
  margin: 1.2rem auto 0;
  padding: 0 1.5rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.breadcrumb a {
  color: #0EA5E9;
  text-decoration: none;
}

.breadcrumb span {
  color: #374151;
}

/* ==================================================
   BLOG HERO
================================================== */

.blog-hero {
  max-width: 1250px;
  margin: 0 auto;
  padding: 2.8rem 1.5rem 1.8rem;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2.5rem;
  align-items: center;
}

.blog-category {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0EA5E9;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-hero h1 {
  font-size: 2.6rem;
  line-height: 1.25;
  margin: 0.7rem 0;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.blog-hero-image img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 16px;
}

/* ==================================================
   BLOG LAYOUT
================================================== */

.blog-layout {
  max-width: 1250px;
  margin: 0 auto;
  padding: 1.8rem 1.5rem 3.5rem;
  display: grid;
  grid-template-columns: 2.7fr 1.3fr;
  gap: 2.4rem;
  align-items: flex-start;
  overflow: visible;
  /* REQUIRED for sticky */
}

/* ==================================================
   BLOG CONTENT
================================================== */

.blog-content {
  background: #ffffff;
  border-radius: 18px;
  padding: 2.4rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  font-size: 18px;
  line-height: 1.9;
  color: #374151;
}

.content-section {
  margin-bottom: 3.2rem;
}

.blog-content p {
  margin-bottom: 1.2rem;
}

.blog-content h2 {
  margin: 3rem 0 1.1rem;
  font-size: 1.7rem;
}

.blog-content h3 {
  margin: 2rem 0 0.7rem;
  font-size: 1.28rem;
}

.blog-content ul,
.blog-content ol {
  margin: 0 0 1.4rem 1.6rem;
}

.blog-content li {
  margin-bottom: 0.6rem;
}

.blog-content a {
  color: #0EA5E9;
  text-decoration: none;
}

.blog-content a:hover {
  text-decoration: underline;
}

/* ==================================================
   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;
}


/* ==================================================
   TABLES (Mobile Friendly)
================================================== */

.content-table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.blog-content table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  /* forces scroll on small screens instead of squishing */
  background: #ffffff;
}

.blog-content th {
  background: #1f2937;
  color: #ffffff;
  padding: 14px 16px;
  font-size: 0.9rem;
  text-align: left;
  white-space: nowrap;
}

.blog-content td {
  padding: 14px 16px;
  font-size: 0.9rem;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.blog-content tr:nth-child(even) {
  background: #f9fafb;
}

.blog-content tr:hover {
  background: #eef2ff;
}

/* ===== Mobile Tweaks ===== */
@media (max-width: 768px) {

  .content-table {
    border-radius: 8px;
    box-shadow: none;
  }

  .blog-content th,
  .blog-content td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

}


/* ==================================================
   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: 1rem;
  text-align: center;
}

.sidebar-cta a {
  display: inline-block;
  margin-top: 0.5rem;
  background: #ffffff;
  color: #0EA5E9;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

/* ==================================================
   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 (MATCHED STYLE)
================================================== */

.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: 1rem;
}

/* Bullet style */
.footer-links li::before,
.footer-countries li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #7dd3c7;
  font-weight: bold;
}

/* ==================================================
   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;
  }
}


/* Blockquote */
.content-quote {
  border-left: 4px solid #0EA5E9;
  padding: 1.2rem 1.6rem;
  margin: 2.8rem 0;
  background: #f1f9ff;
  font-style: italic;
}

.content-quote cite {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: #475569;
}

/* Inline CTA */
.content-cta {
  background: #0EA5E9;
  color: #ffffff;
  padding: 0.3rem;
  border-radius: 16px;
  text-align: center;
  margin: 1rem 0;
}

.content-cta a {
  display: inline-block;
  margin-top: 0.1rem;
  background: #ffffff;
  color: #0EA5E9;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  font-weight: bold;
}


/* 7. Padding guard for very small screens */
@media (max-width: 480px) {
  .blog-content {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
}

/* ==================================================
   FIX: REMOVE HORIZONTAL SCROLL (HIDE SIDEBAR ON MOBILE)
================================================== */

@media (max-width: 1024px) {

  /* Force single-column layout */
  .blog-layout {
    grid-template-columns: 1fr;
  }

  /* Hide sidebar completely */
  .blog-sidebar {
    display: none;
  }

  /* Ensure hero never overflows */
  .blog-hero {
    grid-template-columns: 1fr;
  }
}


/* ==== Mobile-only fixes (SAFE) ==== */

.blog-layout>*,
.blog-hero>* {
  min-width: 0;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

.blog-content table {
  width: 100%;
  table-layout: fixed;
}

.blog-content td,
.blog-content th {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Limit mobile menu width only, don't affect desktop */
@media (max-width: 768px) {
  .nav-links {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .breadcrumb {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Hide sidebar ONLY on tablets and phones */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    display: none;
  }

  .blog-hero {
    grid-template-columns: 1fr;
  }
}