/* ============================================================
   CardioNova Therapeutics — Main Stylesheet
   Matching Edwards Lifesciences design language
   ============================================================ */

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #c41230;
  --dark-red:   #a00e28;
  --nav-bg:     #636363;
  --nav-hover:  #515151;
  --mega-bg:    #f9f9f9;
  --text-dark:  #1a1a1a;
  --text-mid:   #444444;
  --text-light: #777777;
  --border:     #dddddd;
  --bg-light:   #f5f5f5;
  --white:      #ffffff;
  --shadow:     0 4px 16px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- Utility ---------------------------------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================================
   TOP UTILITY BAR
   ============================================================ */
.top-bar {
  background: #efefef;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-light);
  padding: 6px 0;
}
.top-bar .container {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  align-items: center;
}
.top-bar a { color: var(--text-light); }
.top-bar a:hover { color: var(--red); }

/* ============================================================
   SITE HEADER / NAVBAR
   ============================================================ */
.site-header {
  position: relative;
  z-index: 1000;
}

/* Logo block — sits below nav on desktop like Edwards */
.logo-block {
  background: var(--white);
  padding: 0 0 12px 24px;
  display: inline-block;
}
.logo-block a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.logo-icon {
  width: 84px;
  height: 84px;
}
.logo-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.2;
}

/* Primary Navbar */
.primary-nav {
  background: var(--nav-bg);
  position: relative;
}
.primary-nav .container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

/* Nav layout: logo left, links right */
.nav-wrapper {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.nav-logo-area {
  background: var(--white);
  padding: 8px 20px 0 24px;
  display: flex;
  align-items: flex-end;
  min-width: 160px;
}

.nav-links {
  display: flex;
  align-items: stretch;
  flex: 1;
  padding: 0 8px;
}

.nav-item {
  position: static;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 18px 14px;
  height: 100%;
  white-space: nowrap;
  transition: background .2s;
  letter-spacing: 0.2px;
}
.nav-link:hover,
.nav-item.open > .nav-link {
  background: var(--nav-hover);
  color: var(--white);
}

.nav-arrow {
  font-size: 10px;
  transition: transform .25s;
  display: inline-block;
}
.nav-item.open .nav-arrow { transform: rotate(180deg); }

/* Search button */
.nav-search-btn {
  display: flex;
  align-items: center;
  color: var(--white);
  padding: 18px 16px;
  font-size: 18px;
  transition: background .2s;
}
.nav-search-btn:hover { background: var(--nav-hover); }

/* ============================================================
   MEGA MENU
   ============================================================ */
.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--white);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--red);
  z-index: 999;
  padding: 32px 48px;
  animation: fadeSlide .18s ease;
}

/* Patients mega opens at nav level — full width style */
.nav-item.open > .mega-menu { display: block; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Patients & Care Partners — 4-column icon grid */
.mega-patients {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.mega-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.mega-card-icon {
  width: 64px;
  height: 64px;
  color: #888;
}

.mega-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.mega-card-btn {
  display: block;
  width: 100%;
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  padding: 10px 12px;
  text-align: center;
  letter-spacing: 0.3px;
  transition: background .2s, color .2s;
}
.mega-card-btn:hover {
  background: var(--red);
  color: var(--white);
}

/* Healthcare Professionals — 2-section columns */
.mega-hcp {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
}
.mega-hcp-section h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.mega-hcp-links { display: flex; flex-direction: column; gap: 6px; }
.mega-hcp-links a {
  font-size: 14px;
  color: var(--text-mid);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .15s;
}
.mega-hcp-links a:hover { color: var(--red); }

.mega-hcp-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mega-product-col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.mega-product-col a {
  display: block;
  font-size: 13px;
  color: var(--text-mid);
  padding: 4px 0;
  transition: color .15s;
}
.mega-product-col a:hover { color: var(--red); }

/* About Us mega */
.mega-about {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mega-about-col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.mega-about-col a {
  display: block;
  font-size: 13px;
  color: var(--text-mid);
  padding: 4px 0;
  transition: color .15s;
}
.mega-about-col a:hover { color: var(--red); }

/* Careers mega */
.mega-careers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mega-careers a {
  display: block;
  font-size: 13px;
  color: var(--text-mid);
  padding: 4px 0;
  transition: color .15s;
}
.mega-careers a:hover { color: var(--red); }

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
.search-overlay.active { display: flex; }
.search-box {
  background: var(--white);
  width: 100%;
  max-width: 680px;
  padding: 28px 32px;
  border-radius: 2px;
  position: relative;
}
.search-box input {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--red);
  font-size: 20px;
  padding: 8px 0;
  outline: none;
  color: var(--text-dark);
}
.search-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  color: var(--text-light);
  cursor: pointer;
}
.search-close:hover { color: var(--red); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #c8beb4;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(232,228,224,1) 30%, rgba(232,228,224,0) 65%);
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  padding: 40px 0 60px;
}
.hero-box {
  background: var(--red);
  color: var(--white);
  padding: 44px 52px 52px;
  max-width: 500px;
  margin-left: 100px;
  position: relative;
}
.hero-box::after {
  content: '';
  position: absolute;
  bottom: -36px;
  left: 0;
  width: 48px;
  height: 36px;
  background: var(--dark-red);
}
.hero-box h1 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.hero-box p {
  margin-top: 16px;
  font-size: 16px;
  opacity: .9;
}
.hero-box .btn-hero {
  display: inline-block;
  margin-top: 24px;
  background: var(--white);
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 28px;
  letter-spacing: 0.5px;
  transition: background .2s;
}
.hero-box .btn-hero:hover { background: #f0f0f0; }

/* ============================================================
   HOMEPAGE SECTIONS
   ============================================================ */

/* Quick links strip (4 cards below hero) */
.quick-links {
  background: var(--white);
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.quick-card-icon {
  width: 72px;
  height: 72px;
  color: #aaa;
}
.quick-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
}
.quick-card-btn {
  display: block;
  width: 100%;
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  padding: 11px 14px;
  text-align: center;
  transition: background .2s, color .2s;
}
.quick-card-btn:hover {
  background: var(--red);
  color: var(--white);
}

/* Feature band */
.feature-band {
  background: var(--bg-light);
  padding: 72px 0;
}
.feature-band .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature-band-text h2 {
  font-size: 32px;
  font-weight: 300;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 18px;
}
.feature-band-text p {
  font-size: 15px;
  color: var(--text-mid);
  margin-bottom: 24px;
  line-height: 1.7;
}
.btn-outline-red {
  display: inline-block;
  border: 2px solid var(--red);
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 28px;
  letter-spacing: 0.5px;
  transition: background .2s, color .2s;
}
.btn-outline-red:hover { background: var(--red); color: var(--white); }
.btn-red {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 28px;
  letter-spacing: 0.5px;
  transition: background .2s;
}
.btn-red:hover { background: var(--dark-red); }

.feature-band-img {
  border-radius: 2px;
  overflow: hidden;
  background: #ccc;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-band-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

/* Stats strip */
.stats-strip {
  background: var(--red);
  color: var(--white);
  padding: 52px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item .stat-num {
  font-size: 44px;
  font-weight: 300;
  line-height: 1;
  display: block;
}
.stat-item .stat-label {
  font-size: 13px;
  margin-top: 8px;
  opacity: .85;
  letter-spacing: 0.3px;
}

/* Cards row */
.cards-section {
  padding: 72px 0;
  background: var(--white);
}
.cards-section h2 {
  font-size: 30px;
  font-weight: 300;
  margin-bottom: 40px;
  color: var(--text-dark);
}
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.content-card {
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .2s;
}
.content-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.content-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #ddd;
}
.content-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #e0e0e0, #c8c8c8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #aaa;
}
.content-card-body {
  padding: 24px;
}
.content-card-body .tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 8px;
}
.content-card-body h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.content-card-body p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 16px;
}
.content-card-body a {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
.content-card-body a:hover { border-color: var(--red); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--nav-bg);
  color: var(--white);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40%;
  background: var(--red);
  opacity: .15;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 17px;
  opacity: .85;
  max-width: 600px;
  line-height: 1.6;
}

/* ============================================================
   SUB-PAGE NAV (secondary sticky nav like clinical trials page)
   ============================================================ */
.sub-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 800;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.sub-nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
}
.sub-nav-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  padding: 16px 28px 16px 0;
  white-space: nowrap;
  border-right: 1px solid var(--border);
  margin-right: 20px;
}
.sub-nav-links {
  display: flex;
  gap: 0;
}
.sub-nav-links a {
  font-size: 13px;
  color: var(--text-mid);
  padding: 16px 20px;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.sub-nav-links a:hover { color: var(--red); border-bottom-color: var(--red); }
.sub-nav-links a.active { color: var(--red); border-bottom-color: var(--red); font-weight: 600; }

/* ============================================================
   INNER PAGE CONTENT
   ============================================================ */
.page-content {
  padding: 60px 0;
}
.section-title {
  font-size: 34px;
  font-weight: 300;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}
.section-intro {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 720px;
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 600;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.two-col-text p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}
.video-placeholder {
  background: #d0d0d0;
  border-radius: 2px;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 140'%3E%3Crect width='200' height='140' fill='%23c8c8c8'/%3E%3Ccircle cx='100' cy='70' r='28' fill='white' opacity='.9'/%3E%3Cpolygon points='93,58 93,82 117,70' fill='%23636363'/%3E%3C/svg%3E") center/cover no-repeat;
}
.play-btn {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--nav-bg);
  position: relative;
  z-index: 1;
  cursor: pointer;
  transition: transform .2s;
}
.play-btn:hover { transform: scale(1.1); }

/* Caution bar */
.caution-bar {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding-top: 20px;
}
.caution-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  text-decoration: underline;
}
.caution-toggle svg { width: 18px; }
.caution-text {
  display: none;
  font-size: 13px;
  color: var(--text-mid);
  margin-top: 14px;
  line-height: 1.6;
  max-width: 800px;
}
.caution-text.open { display: block; }

/* Accordion */
.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}
.accordion-header:hover { color: var(--red); }
.accordion-header .acc-icon {
  font-size: 20px;
  color: var(--red);
  transition: transform .25s;
  flex-shrink: 0;
}
.accordion-item.open .acc-icon { transform: rotate(45deg); }
.accordion-body {
  display: none;
  padding: 0 0 20px;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
}
.accordion-item.open .accordion-body { display: block; }

/* Info cards grid */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.info-card {
  border: 1px solid var(--border);
  padding: 28px;
}
.info-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
}
.info-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.65;
}
.info-card a {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
}

/* Resource list */
.resource-list { margin-top: 32px; }
.resource-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.resource-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 20px;
  flex-shrink: 0;
}
.resource-info h4 { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.resource-info p  { font-size: 13px; color: var(--text-mid); }
.resource-info a  { font-size: 13px; color: var(--red); font-weight: 600; margin-top: 6px; display: inline-block; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-section { padding: 72px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: start;
}
.contact-info h2 {
  font-size: 34px;
  font-weight: 300;
  margin-bottom: 20px;
}
.contact-info p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 24px;
}
.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.contact-detail-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}
.contact-detail-text span {
  font-size: 14px;
  color: var(--text-mid);
}

.contact-form-card {
  background: var(--bg-light);
  padding: 36px 32px;
  border: 1px solid var(--border);
}
.contact-form-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 24px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: border-color .2s;
  border-radius: 0;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-submit {
  width: 100%;
  background: var(--red);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding: 14px;
  letter-spacing: 0.5px;
  transition: background .2s;
  margin-top: 8px;
}
.form-submit:hover { background: var(--dark-red); }
.form-success {
  display: none;
  background: #e8f5e9;
  border: 1px solid #81c784;
  color: #2e7d32;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  margin-top: 16px;
  border-radius: 2px;
}
.form-success.show { display: block; }
.form-required { color: var(--red); }

/* ============================================================
   PRODUCTS PAGE
   ============================================================ */
.products-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.product-tab {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  padding: 14px 24px;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color .15s;
}
.product-tab.active { color: var(--red); border-bottom-color: var(--red); }
.product-tab:hover { color: var(--red); }

.product-panels > div { display: none; }
.product-panels > div.active { display: block; }

.product-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.product-item:last-child { border-bottom: none; }
.product-img {
  background: var(--bg-light);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}
.product-info h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.product-info p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}
.product-info ul {
  list-style: disc;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ============================================================
   NEWSROOM
   ============================================================ */
.news-filter {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-btn {
  border: 1px solid var(--border);
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  transition: all .15s;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  border: 1px solid var(--border);
}
.news-card-img-placeholder {
  height: 180px;
  background: linear-gradient(135deg, #e0e0e0, #cccccc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #aaa;
}
.news-card-body { padding: 20px; }
.news-date { font-size: 11px; color: var(--text-light); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.news-card-body h3 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; line-height: 1.3; }
.news-card-body p { font-size: 13px; color: var(--text-mid); line-height: 1.6; margin-bottom: 12px; }
.news-card-body a { font-size: 13px; color: var(--red); font-weight: 600; }

/* ============================================================
   INVESTORS PAGE
   ============================================================ */
.investors-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 56px;
}
.investor-highlight {
  background: var(--red);
  color: var(--white);
  padding: 36px;
  margin-bottom: 32px;
}
.investor-highlight .big-num {
  font-size: 52px;
  font-weight: 300;
  display: block;
  line-height: 1;
}
.investor-highlight p { font-size: 15px; opacity: .85; margin-top: 8px; }
.ir-links { border: 1px solid var(--border); }
.ir-link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-dark);
  transition: background .15s;
}
.ir-link-item:last-child { border-bottom: none; }
.ir-link-item:hover { background: var(--bg-light); color: var(--red); }
.ir-link-item span { font-size: 18px; color: var(--red); }

/* ============================================================
   CAREERS PAGE
   ============================================================ */
.careers-hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.career-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.career-value {
  text-align: center;
  padding: 28px 20px;
  border: 1px solid var(--border);
}
.career-value .val-icon { font-size: 36px; margin-bottom: 12px; }
.career-value h4 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.career-value p { font-size: 13px; color: var(--text-mid); line-height: 1.6; }
.job-search-box {
  background: var(--bg-light);
  padding: 36px;
  border: 1px solid var(--border);
  margin: 40px 0;
}
.job-search-box h3 { font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.job-search-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}
.job-search-row input,
.job-search-row select {
  width: 100%;
  border: 1px solid var(--border);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: var(--white);
}
.job-search-row input:focus,
.job-search-row select:focus { border-color: var(--red); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-mission {
  background: var(--red);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}
.about-mission h2 { font-size: 36px; font-weight: 300; max-width: 760px; margin: 0 auto 20px; line-height: 1.3; }
.about-mission p { font-size: 17px; opacity: .9; max-width: 680px; margin: 0 auto; line-height: 1.7; }
.leadership-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 40px; }
.leader-card { text-align: center; }
.leader-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e0e0, #bbb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #888;
  margin: 0 auto 14px;
}
.leader-card h4 { font-size: 15px; font-weight: 700; color: var(--text-dark); }
.leader-card p  { font-size: 13px; color: var(--text-mid); margin-top: 4px; }

/* Timeline */
.timeline { margin: 48px 0; }
.timeline-item {
  display: flex;
  gap: 24px;
  padding-bottom: 36px;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 47px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item:last-child::before { display: none; }
.timeline-year {
  width: 96px;
  text-align: center;
  flex-shrink: 0;
}
.timeline-year span {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 2px;
}
.timeline-content h4 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.timeline-content p  { font-size: 14px; color: var(--text-mid); line-height: 1.6; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 240px repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .footer-logo-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin: 12px 0 14px;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.footer-social a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: all .2s;
}
.footer-social a:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.65);
  padding: 4px 0;
  transition: color .15s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  background: #111;
  padding: 18px 0;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,.5); margin-left: 16px; }
.footer-bottom a:hover { color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-box { margin-left: 40px; }
  .quick-links-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mega-patients { grid-template-columns: repeat(2, 1fr); }
  .mega-hcp-products { grid-template-columns: repeat(2, 1fr); }
  .leadership-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .investors-grid { grid-template-columns: 1fr; }
  .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* --- Tablet (max 860px) ------------------------------------ */
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .info-cards { grid-template-columns: repeat(2, 1fr); }
  .careers-hero-content { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr !important; }
  .contact-side-img { display: none !important; }
  .form-row { grid-template-columns: 1fr; }
}

/* --- Mobile (max 768px) ------------------------------------ */
@media (max-width: 768px) {
  /* Nav */
  .top-bar { display: none; }
  .nav-logo-area { padding: 6px 12px 0; min-width: unset; }
  .logo-icon { width: 52px; height: 52px; }
  .logo-name { font-size: 11px; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    z-index: 999;
    padding: 4px 0 12px;
    max-height: 80vh;
    overflow-y: auto;
  }
  .nav-links.mobile-open { display: flex; }
  .nav-link { padding: 13px 20px; font-size: 15px; }
  .mobile-menu-btn { display: flex !important; margin-left: auto; }

  /* Mega menus in mobile collapse */
  .mega-menu {
    position: static;
    border-top: none;
    padding: 8px 20px 16px;
    box-shadow: none;
    animation: none;
    background: rgba(0,0,0,.12);
  }
  .mega-patients,
  .mega-about,
  .mega-careers { grid-template-columns: 1fr; gap: 12px; }
  .mega-hcp { grid-template-columns: 1fr; }
  .mega-hcp-products { grid-template-columns: 1fr; gap: 12px; }
  .mega-card { flex-direction: row; text-align: left; align-items: center; gap: 12px; }
  .mega-card-icon { width: 32px; height: 32px; flex-shrink: 0; }
  .mega-card h3 { font-size: 14px; }
  .mega-card-btn { display: none; }

  /* Sub-nav: horizontal scroll */
  .sub-nav-inner { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sub-nav-links { flex-wrap: nowrap; }
  .sub-nav-title { display: none; }
  .sub-nav-links a { white-space: nowrap; padding: 14px 16px; font-size: 12px; }

  /* Hero */
  .hero { min-height: 340px; }
  .hero-content { min-height: 340px; padding: 24px 0 48px; }
  .hero-box {
    margin-left: 16px;
    margin-right: 16px;
    padding: 28px 24px 36px;
    max-width: 100%;
  }
  .hero-box h1 { font-size: 22px; }
  .hero-box p { font-size: 14px; }

  /* Layout */
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .cards-grid-3 { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .quick-links-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .feature-band .container { grid-template-columns: 1fr; gap: 24px; }

  /* Typography */
  .section-title { font-size: 24px; }
  .section-intro { font-size: 15px; }
  .page-content { padding: 36px 0; }
  .container { padding: 0 16px; }

  /* Cards */
  .content-card-img { height: 160px; }

  /* Products */
  .product-item { grid-template-columns: 1fr; }
  .job-search-row { grid-template-columns: 1fr; }
  .career-values { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .footer-bottom a { margin-left: 8px; }

  /* Stat strip */
  .stat-item .stat-num { font-size: 32px; }

  /* Hide sticky position on sub-nav for mobile (prevents double sticky bars) */
  .sub-nav { position: relative; }
}

/* --- Small phones (max 480px) ------------------------------ */
@media (max-width: 480px) {
  .quick-links-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-box h1 { font-size: 19px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid > div { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,.15); }
}

/* --- Override inline grid styles on mobile ----------------
   Many inner-page sections use style="grid-template-columns:…"
   which CSS media queries cannot override without !important  */
@media (max-width: 768px) {
  /* Collapse any inline-styled grid to single column */
  div[style*='grid-template-columns'],
  section[style*='grid-template-columns'] {
    grid-template-columns: 1fr !important;
  }
  /* But keep 2-col stat bars readable */
  div[style*='grid-template-columns:repeat(4'] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* Featured article overlay stacks nicely */
  div[style*='grid-template-columns:1.6fr'] {
    grid-template-columns: 1fr !important;
  }
  /* Inline widths that cause overflow */
  img[style*='width:36%'],
  img[style*='width:38%'],
  img[style*='width:42%'] {
    width: 100% !important;
    max-height: 260px !important;
  }
  /* Inline flex gaps that crowd on small screens */
  div[style*='display:flex'] {
    flex-wrap: wrap;
  }
  /* Full-width padded boxes */
  div[style*='padding:48px'],
  div[style*='padding:56px'] {
    padding: 28px 20px !important;
  }
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  color: var(--white);
  padding: 18px 16px;
  font-size: 22px;
}

/* ============================================================
   UTILITY / SHARED HELPERS
   ============================================================ */

/* Standalone .tag used throughout inner pages */
.tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 4px;
}

/* Secondary outline button */
.btn-outline {
  display: inline-block;
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  letter-spacing: 0.3px;
  transition: background .2s, color .2s;
}
.btn-outline:hover {
  background: var(--red);
  color: var(--white);
}

/* Generic color/image placeholder block used inside content cards */
.card-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #e0e0e0, #c8c8c8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #aaa;
  overflow: hidden;
}
