/* ==========================================================================
   LEADING EDGE HEALTHCARE - MODERN EXECUTIVE STYLESHEET
   ========================================================================== */

/* --- Google Fonts: Inter --- */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

/* --- CSS Variables & Color System --- */
:root {
  /* Canvas & Backgrounds */
  --bg-page: #f8fafc;          /* Soft Off-White / Light Slate Canvas */
  --bg-surface: #ffffff;       /* Pure White for Elevated Cards */
  --bg-surface-alt: #f1f5f9;   /* Subtly Tinted Secondary Background */
  
  /* Brand & Accent Colors */
  --brand-primary: #0f172a;    /* Deep Executive Navy (For headings & key text) */
  --brand-accent: #1d4ed8;     /* Crisp Sapphire Blue (For CTAs & links) */
  --brand-accent-hover: #1e40af;
  --accent-soft: #eff6ff;      /* Ice Blue Tint for Highlights */

  /* Text Colors */
  --text-primary: #0f172a;     /* Deep Slate Charcoal */
  --text-secondary: #475569;   /* Muted Slate for Body Paragraphs */
  --text-muted: #94a3b8;       /* Subtle Grey for Subtitles */

  /* UI Details */
  --border-subtle: #e2e8f0;    /* Soft 1px Card Outline */
  --border-focus: #3b82f6;     /* Accent Ring on Input Focus */
  --radius-card: 16px;         /* Sleek Modern Card Corners */
  --radius-input: 10px;        /* Form Input Corners */
  
  /* Shadows & Transitions */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px -5px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.1);
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Resets & Global Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  background-color: var(--bg-page);
  color: var(--text-secondary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-accent);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

a:hover {
  color: var(--brand-accent-hover);
  text-decoration: underline;
}

li {
  list-style-type: none;
}

/* --- Header & Logo --- */
#logo {
  display: block;
  height: 4.5em;
  max-width: 90%;
  margin: 2em auto 1.5em auto;
  object-fit: contain;
}

.navbar {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 999px; /* Modern Pill Navigation */
  box-shadow: var(--shadow-sm);
}

.navbar-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  margin: auto;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  margin: 0;
}

.nav-link:hover {
  color: var(--brand-accent);
  text-decoration: none;
}

/* --- Main Layout Container --- */
.container {
  max-width: 1240px;
  width: 90%;
  margin: 2rem auto 4rem auto;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 3rem;
  color: var(--text-primary);
}

/* --- Left Side (Image Container with Flush Top/Bottom Banners) --- */
.left_side {
  width: 48%;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Pins top banner to top, bottom banner to bottom */
  position: relative;
  overflow: hidden; /* Clips banners cleanly to the card's rounded corners */
  border-radius: var(--radius-card);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: 0 !important; /* Removes inner padding so banners go flush to edges */
  min-height: 540px; /* Protects central background image area */
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  color: #ffffff;
}

/* Top Banner (Flush to Top Edge) */
.top-bubble {
  margin-top: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.82); /* Glassmorphism dark banner for legibility */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.5rem 2rem;
  color: #ffffff;
}

.top-bubble h1,
.top-bubble h2,
.top-bubble h3 {
  color: #ffffff !important;
}

/* Bottom Banner (Flush to Bottom Edge) */
.bottom-bubble {
  margin-top: auto; /* Pushes banner to exact bottom */
  width: 100%;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.5rem 2rem;
  color: #ffffff;
}

.bottom-bubble h1,
.bottom-bubble h2,
.bottom-bubble h4 {
  color: #ffffff !important;
}

/* Center Spacer (Keeps center image visible) */
.center {
  text-align: center;
  flex-grow: 1; /* Automatically absorbs space between top and bottom banners */
  padding: 1rem 0;
}

/* Accent Comment Strip */
.comment {
  background-color: var(--brand-accent);
  color: #ffffff;
  padding: 0.65rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
  width: 100%;
}

/* --- Right Side Column & Video --- */
.right_side {
  width: 48%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.right_side_thanks {
  width: 48%;
  overflow: hidden;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  font-family: inherit;
}

/* Video Block */
.vidya {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  max-width: 48%;
  min-height: 400px;
  color: #ffffff;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.vidya > .top-bubble {
  position: relative;
  z-index: 1;
}

/* --- Clean Modern Typography --- */
h1, h2, h3, h4 {
  color: var(--brand-primary);
  letter-spacing: -0.025em;
  font-style: normal; /* Removes dated italics */
}

.left_side h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.left_side h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.left_side h3 {
  font-size: 1.1rem;
  font-weight: 400;
}

.right_side h1, .right_side_thanks h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.right_side h2, .right_side_thanks h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.right_side_thanks h3 {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.right_side h4, .right_side_thanks h4 {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-accent);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.additional {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
  display: block;
  margin-top: 0.25rem;
}

span {
  margin-right: 20px;
  margin-bottom: 0;
}

/* --- Forms & Inputs --- */
.input_div {
  margin-bottom: 1.25rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.9rem 1.25rem;
  margin-bottom: 0.5rem;
  outline: none;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  border-radius: var(--radius-input);
  font-size: 0.95rem;
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

input:focus,
textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

textarea {
  height: 130px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Hidden File Upload Triggers */
#id_file_one,
#id_file_two,
#id_file_three {
  display: none;
}

/* --- Buttons --- */
.btn, button, .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-accent);
  color: #ffffff !important;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-input);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  min-height: 48px; /* Tappable touch target */
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.2);
}

.btn:hover, button:hover, .btn-primary:hover {
  background-color: var(--brand-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.3);
}

/* --- Info Bubbles & Cards --- */
.bubble_wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.info_bubble {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  flex: 1 1 320px;
  max-width: 100%;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.info_bubble:hover {
  transform: translateY(-2px);
  border-color: var(--brand-accent);
  box-shadow: var(--shadow-lg);
}

.element {
  color: var(--text-primary);
  font-size: 1rem;
  padding: 0;
  margin: 0;
}

.element h2 {
  font-size: 1.35rem;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
}

.element a {
  color: var(--brand-accent);
  font-weight: 600;
}

.unit_logo img {
  height: 42px;
  width: auto;
  margin-top: 1rem;
  padding-left: 0;
}

/* Icons */
.fa-solid {
  font-size: 1.25rem;
  color: var(--brand-accent);
  margin: 0.5rem 0.5rem 0.5rem 0;
}

.fa-thumbs-up {
  font-size: 1rem;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Large Screens (> 1600px) */
@media screen and (min-width: 1600px) {
  .container {
    max-width: 1360px;
  }
}

/* Tablets & Small Laptops (< 1024px) */
@media screen and (max-width: 1024px) {
  .container {
    gap: 1.5rem;
  }

  .left_side h1, .right_side h1 {
    font-size: 1.85rem;
  }
}

/* Mobile Devices (< 768px) */
@media screen and (max-width: 768px) {
  #logo {
    height: 3.2em;
    margin: 1rem auto;
  }

  .navbar {
    width: 92%;
    padding: 0.5rem 1rem;
    border-radius: 16px;
  }

  .navbar-nav {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .container {
    flex-direction: column;
    width: 92%;
    gap: 1.75rem;
    margin: 1rem auto;
  }

  .left_side, 
  .right_side, 
  .right_side_thanks, 
  .vidya {
    width: 100% !important;
    max-width: 100%;
  }

  .left_side {
    min-height: 460px;
    padding: 0 !important;
  }

  .top-bubble,
  .bottom-bubble {
    padding: 1.25rem 1.25rem;
  }

  .right_side_thanks {
    padding: 1.5rem;
  }

  /* Prevents iOS Safari auto-zoom on form inputs */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    font-size: 16px !important;
    padding: 0.85rem 1rem;
  }

  .btn, button, .btn-primary, .button_div .btn {
    width: 100%;
  }

  .info_bubble {
    width: 100% !important; /* Eliminates old 75pc horizontal scroll overflow bug */
    margin: 0;
  }

  .left_side h1, .right_side h1 {
    text-align: left;
    font-size: 1.65rem;
  }

  .comment {
    padding: 0.85rem 1rem;
    text-align: left;
  }
}
