/* ============================================================
   DROP-IN THEME v2 – HEALTHCARE DATA / CONSULTING
   For Tempo/Bootstrap one-page layout
   ============================================================ */

/* -------------------------------
   ROOT COLORS & TOKENS
   ------------------------------- */

:root {
  --primary: #1b88c8;         /* healthcare blue */
  --primary-dark: #166799;
  --primary-soft: rgba(27, 136, 200, 0.14);

  --accent: #22c1c3;
  --accent-soft: rgba(34, 193, 195, 0.14);

  --navy: #111827;            /* main text / nav */
  --navy-soft: #1f2937;

  --bg-page: #f3f5fa;         /* overall page background (not pure white) */
  --bg-surface: #ffffff;      /* cards / inner surfaces */
  --bg-alt: #e9edf5;          /* alternate section background */

  --border-subtle: #e0e4ee;
  --border-strong: #cbd2e4;

  --text-main: #111827;
  --text-muted: #6b7280;

  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius-lg: 16px;
  --radius-md: 12px;
}

/* -------------------------------
   GLOBAL RESET / BASE
   ------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* This keeps Bootstrap containers but softens edges */
.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* General link behaviour */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

h1 {
  font-size: 2.75rem;
  line-height: 1.15;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

/* Section spacing & alternation */
section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
}

section:nth-of-type(odd) {
  background: var(--bg-surface);
}

section:nth-of-type(even) {
  background: var(--bg-alt);
}

/* Mobile spacing tweaks */
@media (max-width: 768px) {
  section {
    padding: 56px 0;
  }

  h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.7rem;
  }
}

/* -------------------------------
   NAVBAR / HEADER
   ------------------------------- */

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 997;
  padding: 10px 0;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

#header.header-scrolled {
  padding: 8px 0;
  background: rgba(248, 250, 252, 0.98);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

#header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

#header .logo img {
  height: 32px;
  width: auto;
}

.navbar {
  padding: 0;
}

.navbar-brand {
  margin-right: auto;
  display: flex;
  align-items: center;
}

/* Desktop nav links */
.navbar-dark .navbar-nav .nav-link {
  color: var(--navy) !important;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 14px !important;
  margin: 0 2px;
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: var(--primary) !important;
  background: var(--primary-soft);
  transform: translateY(-1px);
}

.navbar-dark .navbar-nav .nav-link.active {
  color: var(--primary) !important;
  background: var(--primary-soft);
}

/* Mobile nav */
.navbar-toggler {
  border-radius: 999px;
  border-color: var(--border-strong);
}

.navbar-collapse {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 12px;
}

@media (max-width: 991.98px) {
  #header {
    padding: 8px 0;
  }

  .navbar-collapse {
    margin-top: 10px;
  }

  .navbar-dark .navbar-nav .nav-link {
    padding: 10px 12px !important;
    margin: 2px 0;
    border-radius: 10px;
  }
}

/* -------------------------------
   HERO SECTION
   ------------------------------- */

#hero {
  width: 100%;
  min-height: 85vh;
  background:
    radial-gradient(circle at top left, rgba(34, 193, 195, 0.28), transparent 55%),
    radial-gradient(circle at bottom right, rgba(27, 136, 200, 0.32), transparent 55%),
    linear-gradient(135deg, #0b1724 0%, #111827 55%, #122335 100%);
  position: relative;
  display: flex;
  align-items: center;
  color: #f9fafb;
  overflow: hidden;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05), transparent 70%);
  pointer-events: none;
}

#hero .hero-container {
  position: relative;
  z-index: 1;
  padding-top: 80px; /* offset for fixed header */
}

#hero h1 {
  color: #ffffff;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

#hero h2 {
  margin-top: 14px;
  color: rgba(249, 250, 251, 0.9);
  font-size: 1.1rem;
  font-weight: 400;
  max-width: 640px;
}

#hero .badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 999px;
  padding: 7px 14px;
  border: 1px solid rgba(156, 163, 175, 0.6);
  margin-bottom: 20px;
}

#hero .btn-get-started {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  padding: 11px 26px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
  transition: all 0.2s ease;
}

#hero .btn-get-started:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.45);
}

/* Optional hero secondary button */
#hero .btn-outline-light {
  border-radius: 999px;
  border-width: 1px;
  border-color: rgba(209, 213, 219, 0.75);
  color: #e5e7eb;
  font-size: 0.9rem;
  padding: 10px 18px;
  margin-left: 8px;
}

#hero .btn-outline-light:hover {
  background: rgba(249, 250, 251, 0.08);
}

/* Hero layout columns if you have image/chart on right */
@media (min-width: 992px) {
  #hero {
    min-height: 92vh;
  }
}

@media (max-width: 768px) {
  #hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  #hero h1 {
    font-size: 2.2rem;
  }

  #hero h2 {
    font-size: 0.98rem;
  }

  #hero .btn-get-started {
    width: 100%;
    justify-content: center;
  }

  #hero .btn-outline-light {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
  }
}

/* -------------------------------
   SECTION TITLES
   ------------------------------- */

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary-dark);
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--primary-soft);
  margin-bottom: 16px;
}

.section-title h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.section-title p {
  margin: 0 auto;
  max-width: 640px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* -------------------------------
   GENERIC CARD SYSTEM
   ------------------------------- */

.card,
.service-card,
.solution-card,
.feature-box {
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: none;
  padding: 24px 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.card:hover,
.service-card:hover,
.solution-card:hover,
.feature-box:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.card-title,
.service-card h4,
.solution-card h4,
.feature-box h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.card-text,
.service-card p,
.solution-card p,
.feature-box p {
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* Icon “chip” for services/solutions */
.service-icon,
.solution-icon,
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 18px 0;
}

.service-icon i,
.solution-icon i,
.feature-icon i {
  font-size: 1.4rem;
  color: var(--primary);
}

/* -------------------------------
   ABOUT / DATA / SOLUTIONS SECTIONS
   ------------------------------- */

.about-section-container,
.data-section-container,
.solutions-section-container {
  background: transparent; /* section wrapper handles bg */
}

.about-content-box,
.data-content-box,
.solutions-content-box {
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: none;
  padding: 28px 26px;
}

.about-content-box p,
.data-content-box p,
.solutions-content-box p {
  font-size: 0.96rem;
  color: var(--text-muted);
}

/* Data bullet list */
.data-challenges-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0 0;
}

.data-challenges-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.data-challenges-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
}

/* File type “chips” */
.file-types-container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.file-type-item {
  text-align: center;
}

.file-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  transition: all 0.2s ease;
}

.file-icon i {
  font-size: 1.4rem;
  color: var(--primary);
}

.file-type-item span,
.file-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.file-icon:hover {
  border-style: solid;
  border-color: var(--primary);
  background: #ffffff;
  transform: translateY(-2px);
}

/* -------------------------------
   SERVICES GRID
   ------------------------------- */

.services {
  padding-top: 80px;
  padding-bottom: 80px;
}

.services .icon-box {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 26px 24px;
  text-align: left;
  box-shadow: none;
  transition: all 0.2s ease;
}

.services .icon-box:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.services .icon {
  margin-bottom: 16px;
}

.services .icon i {
  font-size: 1.6rem;
  color: var(--primary);
}

.services .title {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.services .description {
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* -------------------------------
   TEAM SECTION
   ------------------------------- */

.team {
  padding-top: 80px;
  padding-bottom: 80px;
}

.team .member {
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: none;
  overflow: hidden;
  text-align: center;
  transition: all 0.2s ease;
}

.team .member:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.team .member-img img {
  width: 100%;
  display: block;
}

.team .member-info {
  padding: 18px 16px 20px 16px;
}

.team .member-info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.team .member-info span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-dark);
}

.team .member-info p {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* -------------------------------
   CONTACT SECTION
   ------------------------------- */

.contact {
  padding-top: 80px;
  padding-bottom: 80px;
}

.contact .info,
.contact .php-email-form {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 26px 24px;
  box-shadow: none;
  transition: all 0.2s ease;
}

.contact .info:hover,
.contact .php-email-form:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-soft);
}

.contact .info i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: var(--primary);
}

.contact .info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact .info p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Form inputs */
.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  font-size: 0.95rem;
  padding: 10px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(27, 136, 200, 0.18);
  outline: none;
}

/* Submit button */
.contact .php-email-form button[type="submit"] {
  border-radius: 999px;
  border: none;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--primary);
  color: #ffffff;
  transition: all 0.2s ease;
}

.contact .php-email-form button[type="submit"]:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(27, 136, 200, 0.35);
}

/* -------------------------------
   CTAs
   ------------------------------- */

.cta {
  background: linear-gradient(135deg, var(--navy-soft), #152238);
  color: #f9fafb;
  padding: 60px 0;
}

.cta h3 {
  color: #ffffff;
  margin-bottom: 12px;
}

.cta p {
  color: rgba(243, 244, 246, 0.88);
}

.cta .cta-btn {
  border-radius: 999px;
  padding: 10px 24px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: #ffffff;
  color: #111827;
}

.cta .cta-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

/* -------------------------------
   FOOTER
   ------------------------------- */

#footer {
  background: #101827;
  color: rgba(209, 213, 219, 0.9);
  font-size: 0.88rem;
}

#footer .footer-top {
  padding: 32px 0 18px 0;
  border-bottom: 1px solid rgba(31, 41, 55, 0.85);
}

#footer .footer-top h4 {
  font-size: 0.96rem;
  margin-bottom: 10px;
  color: #f9fafb;
}

#footer .footer-top p,
#footer .footer-top a {
  color: rgba(209, 213, 219, 0.9);
}

#footer .footer-top a:hover {
  color: var(--primary);
}

#footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.9);
  color: #e5e7eb;
  margin-right: 6px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

#footer .social-links a:hover {
  background: var(--primary);
  color: #ffffff;
}

#footer .credits {
  padding: 16px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(156, 163, 175, 0.9);
}

/* -------------------------------
   BACK-TO-TOP BUTTON
   ------------------------------- */

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--primary);
  display: none;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
  box-shadow: 0 12px 30px rgba(27, 136, 200, 0.55);
  z-index: 999;
  transition: all 0.25s ease;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* -------------------------------
   SMALL UTILITY CLASSES
   ------------------------------- */

.text-muted-soft {
  color: var(--text-muted) !important;
}

.badge-soft {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 500;
}

/* Slight fade-up animation class (optional) */
.fade-up {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUpIn 0.6s ease forwards;
}

@keyframes fadeUpIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Center-align hero text & buttons */
#hero .hero-container {
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}

#hero h1,
#hero h2 {
  margin-left: auto;
  margin-right: auto;
}

#hero .hero-cta-group,
#hero .btn-get-started,
#hero .btn-outline-light {
  justify-content: center !important;
  margin-left: auto;
  margin-right: auto;
  display: inline-flex;
}

/* REAL WORKING FIX for spacing between About tiles */
.about-services-wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 48px 0 !important; /* 48px vertical gap, 0px horizontal gap */
}

/* Remove pill look from header nav links */
.navbar-dark .navbar-nav .nav-link {
  border-radius: 0 !important;
  background: transparent !important;
  padding: 8px 4px !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  background: transparent !important;
  color: var(--primary) !important;
  border-bottom: 2px solid var(--primary) !important;
}

/* Unify header + navbar background color */
#header,
#header .navbar {
  background: #ffffff !important;
  backdrop-filter: none !important;
  border-bottom: 1px solid #e3e7ee !important;
}

/* Add proper spacing above the About tiles grid */
.about-services-wrapper {
  margin-top: 48px !important;
}

/* Add proper spacing above the Solutions tiles grid */
.solutions-cards-wrapper {
  margin-top: 48px !important;
}

/* ---------------------------------------
   SECTION TITLES — High-End Accent Bar
   --------------------------------------- */

.section-title h2 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary-dark);
  background: none !important;
  padding: 0 0 0 20px !important;   /* space for bar */
  border-radius: 0 !important;
  margin-bottom: 16px !important;
  position: relative;
  display: inline-block;
}

.section-title h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 18px;
  background: var(--primary);
  transform: translateY(-50%);
  border-radius: 2px;
}

/* Optional: improve spacing of the h3 below it */
.section-title h3 {
  margin-top: 4px !important;
}

/* Add real horizontal breathing space inside the header */
#header .container-fluid {
  padding-left: 32px !important;
  padding-right: 32px !important;
}

/* Improve distribution of elements inside the navbar */
#header .navbar {
  justify-content: space-between !important;
}

.navbar-nav .nav-link {
  margin-left: 12px !important;
  margin-right: 12px !important;
}

/* ----------------------------------------
   COOKIE NOTICE — Modern, Clean, Subtle
   ---------------------------------------- */

#cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(17, 24, 39, 0.92); /* navy with transparency */
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
  z-index: 9999;
}

#cookie-notice .cookie-notice-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

#cookie-notice p {
  margin: 0;
  color: #e5e7eb;                 /* light grey */
  font-size: 0.85rem;
  line-height: 1.4;
}

#cookie-notice a {
  color: var(--primary);
  text-decoration: underline;
}

#cookie-accept {
  background: var(--primary);
  border: none;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  transition: background 0.2s ease;
}

#cookie-accept:hover {
  background: var(--primary-dark);
}

/* Mobile layout: stack text above button */
@media (max-width: 600px) {
  #cookie-notice .cookie-notice-content {
    flex-direction: column;
    align-items: flex-start;
  }

  #cookie-accept {
    width: 100%;
    text-align: center;
  }
}

/* REAL FIX: Add vertical spacing between rows of solution tiles */
.solutions-cards-wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 48px 0 !important;   /* 48px vertical spacing, 0 horizontal */
}

/* Improve visual blending for Data section content box */
#data .data-content-box {
  background: #f8fafc !important; /* soft, near-white neutral */
  border: 1px solid rgba(0, 0, 0, 0.03) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
}

/* Make the Data section behave like the Team section */
#data .data-content-box {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Optional: slightly increase spacing for readability on bg-alt */
#data .data-content-wrapper {
  margin-top: 24px;
}

#data .data-challenges-list li {
  color: var(--text-main); /* improves contrast on bg-alt */
}

#data .data-challenges-list li::before {
  background: var(--primary); /* keep accent bullets */
}

/* ============================================================
   UNIFORM TILE HEIGHTS FOR ABOUT + SOLUTIONS
   ============================================================ */

/* Make each column act as a flex container so the card fills it */
.about-services-wrapper .service-card-col,
.solutions-cards-wrapper .solution-card-col {
  display: flex !important;
}

/* Make the card stretch to equal height */
.about-services-wrapper .service-card,
.solutions-cards-wrapper .solution-card {
  flex: 1 1 auto !important;
  height: 100% !important;
  display: flex;
  flex-direction: column;
}

/* Ensure icons, headings, and text inside stack consistently */
.about-services-wrapper .service-card > *,
.solutions-cards-wrapper .solution-card > * {
  flex-shrink: 0;
}

/* Add auto space at bottom so button-less tiles still stretch cleanly */
.about-services-wrapper .service-card p,
.solutions-cards-wrapper .solution-card p {
  margin-bottom: 0;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(17,24,39, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Underline nav style */
.nav-link.nav-underline {
  position: relative;
  padding-bottom: 4px;
  color: var(--navy) !important;
  font-weight: 600;
  transition: color 0.25s ease;
}

.nav-link.nav-underline:hover {
  color: var(--primary) !important;
}

.nav-link.nav-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link.nav-underline:hover::after,
.nav-link.nav-underline.active::after {
  transform: scaleX(1);
}

/* Highlight active link text */
.nav-link.active {
  color: var(--primary) !important;
}

/* Make hamburger icon visible */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(17,24,39,0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ===== CMS Timeline Styles ===== */

.cms-timeline-wrapper {
  margin: 60px auto 40px;
  padding: 20px 0;
  max-width: 900px;
}

.timeline-header h4 {
  font-weight: 700;
  margin-bottom: 10px;
}

.timeline-subtitle {
  font-size: 1.05rem;
  color: #555;
}

.timeline-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  margin-top: 40px;
}

.timeline-block {
  width: 45%;
}

.timeline-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.before-title {
  color: #b33f3f; /* muted healthcare red tone */
}

.after-title {
  color: #0077b6; /* your healthcare blue */
}

.timeline-content ul {
  padding-left: 18px;
}

.timeline-content ul li {
  margin-bottom: 8px;
  line-height: 1.4;
}

/* Icons */
.timeline-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.before-icon {
  color: #b33f3f;
}

.after-icon {
  color: #0077b6;
}

/* Divider line between before & after */
.timeline-divider {
  width: 2px;
  background: #ddd;
  height: 220px;
  margin-top: 20px;
}

/* Footer text */
.timeline-footer {
  margin-top: 30px;
  font-size: 1.05rem;
  color: #444;
  line-height: 1.5;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .timeline-container {
    flex-direction: column;
    align-items: center;
  }

  .timeline-block {
    width: 100%;
    margin-bottom: 30px;
  }

  .timeline-divider {
    display: none;
  }
}

/* ===== Integrated CMS Timeline ===== */

.timeline-integrated {
  margin: 40px 0;
  padding: 25px 20px;
  background: #f7f9fc;
  border-radius: 8px;
  border-left: 4px solid #0077b6;
}

.timeline-heading {
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-intro {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: #444;
}

.timeline-row {
  margin-top: 10px;
}

.timeline-box {
  background: white;
  border-radius: 6px;
  padding: 18px 20px;
  border: 1px solid #e6e6e6;
  height: 100%;
}

.timeline-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.before-title {
  color: #b33f3f; /* muted healthcare red tone */
}

.after-title {
  color: #0077b6; /* your healthcare blue */
}

.timeline-box ul {
  padding-left: 18px;
}

.timeline-box li {
  margin-bottom: 8px;
  line-height: 1.4;
  color: #444;
}

.timeline-summary {
  margin-top: 20px;
  font-size: 1.05rem;
  color: #333;
  line-height: 1.6;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .timeline-integrated {
    padding: 20px 15px;
  }

  .timeline-box {
    margin-bottom: 18px;
  }
}

/* ===== Integrated CMS Timeline (Subtle, No White Panels) ===== */

.timeline-integrated.subtle {
  margin: 40px 0;
  padding: 30px 25px;
  background: rgba(255, 255, 255, 0.06); /* subtle veil, not white */
  border-left: 4px solid #0077b6;
  border-radius: 8px;
}

.timeline-heading {
  font-weight: 700;
  margin-bottom: 8px;
  color: #f0f4f8;
}

.timeline-intro {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: #e2e8f0; /* softer white-blue text */
}

.timeline-row {
  margin-top: 15px;
}

.timeline-box.subtle-box {
  padding: 18px 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05); /* translucent, not white */
  border: 1px solid rgba(255, 255, 255, 0.15);
  height: 100%;
}

.timeline-title {
  font-weight: 600;
  margin-bottom: 12px;
}

.before-title {
  color: #ff6b6b;
}

.after-title {
  color: #4da3ff;
}

.timeline-box ul {
  padding-left: 18px;
}

.timeline-box li {
  margin-bottom: 8px;
  line-height: 1.5;
  color: #e5e9ef;
}

.timeline-summary {
  margin-top: 25px;
  font-size: 1.05rem;
  color: #f1f5f9;
  line-height: 1.6;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .timeline-integrated.subtle {
    padding: 20px 18px;
  }

  .timeline-box.subtle-box {
    margin-bottom: 20px;
  }
}

/* ===== Integrated CMS Timeline (High Legibility on Dark Background) ===== */

.timeline-integrated.subtle {
  margin: 40px 0;
  padding: 32px 26px;
  background: rgba(255, 255, 255, 0.10); /* slightly brighter overlay */
  border-left: 4px solid #4da3ff;
  border-radius: 8px;
  color: #f7fafc; /* globally readable text */
}

/* Titles */
.timeline-heading {
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff; /* pure white for clarity */
}

.timeline-intro {
  font-size: 1.05rem;
  margin-bottom: 22px;
  color: #e8edf2; /* soft white-blue */
}

/* The two-column boxes */
.timeline-box.subtle-box {
  padding: 20px 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12); /* brighter, more readable */
  border: 1px solid rgba(255, 255, 255, 0.22);
  height: 100%;
  color: #f1f5f9; /* readable inside the box */
}

.timeline-title {
  font-weight: 600;
  margin-bottom: 12px;
  color: #ffffff; /* clean and readable */
}

.before-title {
  color: #ff8585 !important; /* lighter, readable red */
}

.after-title {
  color: #84c4ff !important; /* lighter blue */
}

/* List items */
.timeline-box ul {
  padding-left: 18px;
}

.timeline-box li {
  margin-bottom: 9px;
  line-height: 1.55;
  color: #e9eef3; /* readable gray-blue instead of dim gray */
}

/* Summary paragraph */
.timeline-summary {
  margin-top: 26px;
  font-size: 1.08rem;
  color: #f5f9ff; /* bright but softer than pure white */
  line-height: 1.65;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .timeline-integrated.subtle {
    padding: 24px 20px;
  }

  .timeline-box.subtle-box {
    margin-bottom: 20px;
  }
}

/* ===== Integrated CMS Timeline – tuned for LIGHT background ===== */

.timeline-integrated.subtle {
  margin: 32px 0;
  padding: 24px 22px;
  background: #f4f6fb; /* soft, not pure white, works on light section bg */
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  color: var(--text-main);
}

.timeline-heading {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy);
}

.timeline-intro {
  font-size: 0.98rem;
  margin-bottom: 18px;
  color: var(--text-muted);
}

/* Inner boxes */
.timeline-box.subtle-box {
  padding: 18px 18px;
  border-radius: 8px;
  background: #ffffff; /* card-style but contained within a tinted panel */
  border: 1px solid var(--border-subtle);
  height: 100%;
}

.timeline-title {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--navy-soft);
}

.before-title {
  color: #b91c1c; /* readable red on light bg */
}

.after-title {
  color: var(--primary-dark); /* your main blue, darker tone */
}

.timeline-box ul {
  padding-left: 18px;
  margin: 0;
}

.timeline-box li {
  margin-bottom: 8px;
  line-height: 1.55;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.timeline-summary {
  margin-top: 20px;
  font-size: 0.98rem;
  color: var(--navy-soft);
  line-height: 1.6;
}

/* Spacing on mobile */
@media (max-width: 768px) {
  .timeline-integrated.subtle {
    padding: 20px 16px;
  }

  .timeline-box.subtle-box {
    margin-bottom: 10px;
  }
}
