/* ============================================================
   Telemedicine Integration — premium healthcare-SaaS redesign
   Additive & scoped under .tmi-page / .tmi-*  (no global leak).
   Brand palette aligned with AI Diagnostics page for site
   consistency. Real photography used throughout.
   ============================================================ */
.tmi-page {
  --t-blue: var(--theme-color, #f05151);
  --t-navy: var(--theme-color-1, #1a0a0a);
  --t-cyan: #fa6f6f;
  --t-ink: #1c0e0e;
  --t-muted: #5b6478;
  --t-soft: #fff2f1;
  --t-line: #fdecec;
  --t-grad: linear-gradient(120deg, #f05151 0%, #fa6f6f 100%);
  --t-grad-navy: linear-gradient(135deg, #3a1616 0%, #1a0a0a 100%);
  overflow: hidden;
}
.tmi-page .tmi-section { position: relative; padding: 92px 0; }
.tmi-page .tmi-section.tmi-soft { background: var(--t-soft); }
.tmi-page .tmi-section.tmi-navy { background: var(--t-grad-navy); }
.tmi-page p { color: var(--t-muted); font-size: 16px; line-height: 1.8; }
.tmi-navy p { color: rgba(255,255,255,.78); }

/* Headings */
.tmi-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--t-blue);
  background: var(--primary10, rgba(240,81,81,.1)); padding: 7px 16px; border-radius: 50px; margin-bottom: 20px;
}
.tmi-navy .tmi-eyebrow { color: #fff; background: rgba(255,255,255,.12); }
.tmi-title { font-size: 40px; line-height: 1.2; font-weight: 700; color: var(--t-ink); margin-bottom: 18px; letter-spacing: -.5px; }
.tmi-navy .tmi-title { color: #fff; }
.tmi-title .g { background: var(--t-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tmi-lead { font-size: 18px; color: var(--t-muted); line-height: 1.8; }
.tmi-navy .tmi-lead { color: rgba(255,255,255,.8); }
.tmi-center { text-align: center; }
.tmi-center .tmi-title { max-width: 780px; margin-left: auto; margin-right: auto; }
.tmi-center .tmi-lead { max-width: 720px; margin: 0 auto; }

/* Alternating split */
.tmi-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.tmi-split.reverse .tmi-media { order: 2; }
.tmi-split-content .tmi-title { font-size: 34px; }

/* Photo frame (real photography) */
.tmi-photo {
  position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 11 / 8;
  background: linear-gradient(135deg, #fbd8d6 0%, #fdecec 60%, #fdecec 100%);
  box-shadow: 0 40px 80px -34px rgba(16,23,57,.42); margin: 0;
}
.tmi-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.tmi-photo:hover img { transform: scale(1.06); }
.tmi-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, transparent 60%, rgba(15,13,29,.22)); pointer-events: none; }
.tmi-media { position: relative; }
.tmi-media .tmi-blob {
  position: absolute; width: 62%; aspect-ratio: 1; inset: auto auto -10% -8%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle at 40% 40%, rgba(250,111,111,.22), transparent 65%); filter: blur(12px);
}
.tmi-float { animation: tmiFloat 6.5s ease-in-out infinite; }
@keyframes tmiFloat { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-14px);} }

/* Floating stat chip on photo */
.tmi-chip {
  position: absolute; background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.6); border-radius: 16px; padding: 14px 18px;
  box-shadow: 0 24px 50px -20px rgba(16,23,57,.45); display: flex; align-items: center; gap: 12px; z-index: 2;
}
.tmi-chip .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--t-grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.tmi-chip b { color: var(--t-ink); font-size: 18px; display: block; line-height: 1; }
.tmi-chip small { color: var(--t-muted); font-size: 12px; }
.tmi-chip.tl { top: 20px; left: -20px; } .tmi-chip.br { bottom: 22px; right: -18px; }

/* Feature checklist */
.tmi-checks { margin: 26px 0 30px; padding: 0; list-style: none; }
.tmi-checks li { position: relative; padding-left: 38px; margin-bottom: 15px; color: var(--t-ink); font-weight: 500; }
.tmi-navy .tmi-checks li { color: rgba(255,255,255,.9); }
.tmi-checks li i { position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--t-grad); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }

/* Glassmorphism solution cards */
.tmi-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 14px; }
.tmi-gcard {
  position: relative; border-radius: 20px; padding: 34px 30px; height: 100%;
  background: rgba(255,255,255,.7); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 30px 60px -38px rgba(16,23,57,.4); transition: transform .45s ease, box-shadow .45s ease;
  overflow: hidden;
}
.tmi-soft .tmi-gcard { background: rgba(255,255,255,.9); border-color: #fff; }
.tmi-gcard::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--t-grad); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.tmi-gcard:hover { transform: translateY(-10px); box-shadow: 0 40px 70px -34px rgba(16,23,57,.45); }
.tmi-gcard:hover::before { transform: scaleX(1); }
.tmi-gcard .ic { width: 62px; height: 62px; border-radius: 16px; background: var(--t-grad); color: #fff; font-size: 25px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 22px; transition: transform .45s ease; }
.tmi-gcard:hover .ic { transform: rotate(-6deg) scale(1.07); }
.tmi-gcard h4 { font-size: 20px; color: var(--t-ink); font-weight: 700; margin-bottom: 12px; }
.tmi-gcard p { font-size: 15px; margin: 0; }

/* Reason chips (why it matters) */
.tmi-reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 18px; }
.tmi-reason {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; font-weight: 500; font-size: 15px;
  transition: all .4s ease;
}
.tmi-reason:hover { background: rgba(255,255,255,.12); transform: translateY(-5px); }
.tmi-reason i { color: var(--t-cyan); font-size: 18px; flex: 0 0 auto; }

/* Stats */
.tmi-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.tmi-stat { text-align: center; position: relative; }
.tmi-stat:not(:last-child)::after { content: ""; position: absolute; right: -15px; top: 18%; height: 64%; width: 1px; background: rgba(255,255,255,.16); }
.tmi-stat .n { font-size: 48px; font-weight: 800; line-height: 1; color: #fff; }
.tmi-stat .n .s { background: var(--t-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tmi-stat p { margin-top: 12px; color: rgba(255,255,255,.72); font-size: 15px; }

/* Benefit cards */
.tmi-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 16px; }
.tmi-benefit { background: #fff; border: 1px solid var(--t-line); border-radius: 16px; padding: 28px; transition: all .4s ease; }
.tmi-benefit:hover { transform: translateY(-7px); box-shadow: 0 30px 58px -32px rgba(16,23,57,.32); }
.tmi-benefit .ic { width: 54px; height: 54px; border-radius: 14px; background: var(--primary10, rgba(240,81,81,.1)); color: var(--t-blue); font-size: 21px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; transition: all .4s ease; }
.tmi-benefit:hover .ic { background: var(--t-grad); color: #fff; }
.tmi-benefit h5 { font-size: 18px; color: var(--t-ink); font-weight: 700; margin-bottom: 10px; }
.tmi-benefit p { font-size: 15px; margin: 0; }

/* Industry pills */
.tmi-pills { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 6px; }
.tmi-pill { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--t-line); border-radius: 50px; padding: 13px 22px; font-weight: 600; color: var(--t-ink); font-size: 15px; transition: all .35s ease; }
.tmi-pill i { color: var(--t-blue); transition: all .35s ease; }
.tmi-pill:hover { background: var(--t-grad); color: #fff; border-color: transparent; transform: translateY(-4px); }
.tmi-pill:hover i { color: #fff; }

/* CTA */
.tmi-cta { position: relative; border-radius: 28px; overflow: hidden; background: var(--t-grad-navy); padding: 72px 60px; text-align: center; }
.tmi-cta::before, .tmi-cta::after { content: ""; position: absolute; border-radius: 50%; filter: blur(8px); }
.tmi-cta::before { width: 320px; height: 320px; top: -120px; right: -80px; background: radial-gradient(circle, rgba(240,81,81,.4), transparent 65%); }
.tmi-cta::after { width: 280px; height: 280px; bottom: -130px; left: -60px; background: radial-gradient(circle, rgba(250,111,111,.35), transparent 65%); }
.tmi-cta .tmi-title, .tmi-cta p { position: relative; }
.tmi-cta .tmi-title { color: #fff; }
.tmi-cta p { color: rgba(255,255,255,.8); max-width: 660px; margin: 0 auto 32px; }
.tmi-cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.tmi-btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; padding: 16px 30px; border-radius: 50px; transition: all .4s ease; border: none; }
.tmi-btn.solid { background: #fff; color: var(--t-navy); }
.tmi-btn.solid:hover { background: var(--t-blue); color: #fff; transform: translateY(-3px); box-shadow: 0 20px 40px -16px rgba(240,81,81,.6); }
.tmi-btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; }
.tmi-btn.ghost:hover { background: #fff; color: var(--t-navy); transform: translateY(-3px); }
.tmi-btn i { transition: transform .4s ease; }
.tmi-btn:hover i { transform: translate(4px,-4px); }

/* Scoped hero (this page only): real photo + gradient overlay */
.breadcrumb__area.tmi-hero { background: #1a0a0a; }
.breadcrumb__area.tmi-hero .breadcrumb__thumb,
.breadcrumb__area.tmi-hero .breadcrumb__thumb_2 { display: none; }
.breadcrumb__area.tmi-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(115deg, rgba(15,13,29,.92) 0%, rgba(22,32,74,.78) 50%, rgba(35,75,176,.55) 100%),
    url("https://images.unsplash.com/photo-1758691461932-d0aa0ebf6b31?auto=format&fit=crop&w=1920&q=70");
  background-size: cover; background-position: center;
}
.breadcrumb__area.tmi-hero .small-container { position: relative; z-index: 1; }

/* Animations safety */
@media (prefers-reduced-motion: reduce) { .tmi-float { animation: none !important; } }

/* Responsive */
@media (max-width: 1199px) {
  .tmi-cards, .tmi-reasons { grid-template-columns: repeat(2, 1fr); }
  .tmi-title { font-size: 34px; }
}
@media (max-width: 991px) {
  .tmi-page .tmi-section { padding: 64px 0; }
  .tmi-split { grid-template-columns: 1fr; gap: 40px; }
  .tmi-split.reverse .tmi-media { order: 0; }
  .tmi-benefits { grid-template-columns: repeat(2, 1fr); }
  .tmi-stats { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .tmi-stat:nth-child(2)::after { display: none; }
  .tmi-title { font-size: 30px; }
  .tmi-cta { padding: 54px 28px; }
}
@media (max-width: 575px) {
  .tmi-cards, .tmi-benefits, .tmi-stats, .tmi-reasons { grid-template-columns: 1fr; }
  .tmi-stat::after { display: none !important; }
  .tmi-title, .tmi-split-content .tmi-title { font-size: 25px; }
  .tmi-chip.tl, .tmi-chip.br { display: none; }
}
