/*
  ================================================================
  QINGLI PEPTIDE — PROFESSIONAL MEDICAL THEME OVERRIDE
  ================================================================
  PALETTE:
    Primary   #0F4C81  — Deep Authoritative Navy
    Secondary #2CCED2  — Medical Cyan (bright clinical accent)
    Tertiary  #64748B  — Professional Slate (body text, muted)
    Neutral   #F8FAFC  — Clinical White (headlines, contrast text)
  
  BACKGROUNDS (dark navy derivations of Primary):
    Page bg   #070f1c  — Deepest navy
    Sections  #0c1a2e  — Rich dark navy
    Cards     #112037  — Slightly lighter navy
  ================================================================
*/

/* ============================
   GLOBAL FOUNDATION
   ============================ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  background-color: #070f1c !important;
  color: #F8FAFC !important;
}

/* Every section alternates between two deep navies for depth */
section, .section, .section-dark, .section-darker {
  background-color: #070f1c !important;
}

section:nth-child(even), .section:nth-child(even) {
  background-color: #0c1a2e !important;
}

/* ============================
   TYPOGRAPHY
   ============================ */
h1, h2, h3, h4, h5, h6 {
  color: #F8FAFC !important;
}

p, li, span, label, td, th {
  color: #64748B !important;
}

/* Specifically white text on dark sections */
.hero p, .hero li,
.section p, .section li,
.section-dark p, .section-dark li {
  color: #94a3b8 !important;
}

a {
  color: #2CCED2 !important;
  text-decoration: none;
}

a:hover {
  color: #5ddde0 !important;
}

/* ============================
   NAVIGATION BAR
   ============================ */
.header, header {
  background: rgba(7, 15, 28, 0.92) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  border-bottom: 1px solid rgba(44, 206, 210, 0.1) !important;
  box-shadow: 0 2px 24px rgba(0,0,0,0.4) !important;
}

.header.scrolled {
  background: rgba(4, 9, 18, 0.97) !important;
  border-bottom-color: rgba(44, 206, 210, 0.2) !important;
}

/* Default nav links — slate, readable against dark nav */
.nav-link, .nav-link * {
  color: #8fa4b8 !important;
  transition: color 0.2s ease !important;
}

.nav-link:hover, .nav-link.active {
  color: #F8FAFC !important;
}

/* Nav underline indicator — use Secondary cyan */
.nav-link.active::after,
.nav-link:hover::after {
  background: #2CCED2 !important;
}

/* Logo accent text */
.logo-accent, .brand-name span, .nav-logo span {
  color: #2CCED2 !important;
}

/* CLIENT PORTAL button in nav */
.btn-client-portal,
a[href*="portal"],
.nav-cta {
  background: linear-gradient(135deg, #0F4C81 0%, #0a3d6b 100%) !important;
  color: #F8FAFC !important;
  border: 1px solid rgba(15, 76, 129, 0.5) !important;
  box-shadow: 0 4px 16px rgba(15, 76, 129, 0.25) !important;
}

/* ============================
   MARQUEE / TICKER BAR
   ============================ */
.custom-marquee {
  background: linear-gradient(135deg, #0c1a2e 0%, #112037 50%, #0c1a2e 100%) !important;
  border-top: 1px solid rgba(44, 206, 210, 0.08) !important;
  border-bottom: 1px solid rgba(44, 206, 210, 0.08) !important;
  box-shadow: none !important;
}

.custom-marquee-inner {
  color: #2CCED2 !important;
}

.custom-marquee-message {
  background: rgba(44, 206, 210, 0.04) !important;
  border: 1px solid rgba(44, 206, 210, 0.15) !important;
}

/* ============================
   BLOG CARDS MARQUEE (Home Page)
   ============================ */
.blog-cards-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1rem 0 3rem;
  /* Fading edges for the scrolling container */
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.blog-cards-marquee-track {
  display: flex;
  gap: 1.75rem;
  width: max-content;
  animation: scroll-blog-cards 40s linear infinite;
}

.blog-cards-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-blog-cards {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 0.875rem)); }
}

.blog-marquee-card {
  width: 320px;
  flex-shrink: 0;
  background: #0c1a2e !important;
  border: 1px solid rgba(100, 116, 139, 0.12) !important;
  border-radius: 1.25rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-marquee-card:hover {
  transform: translateY(-6px);
  border-color: rgba(44, 206, 210, 0.2) !important;
  box-shadow: 0 14px 35px rgba(0,0,0,0.35), 0 0 0 1px rgba(44, 206, 210, 0.08) !important;
}

.blog-marquee-card .card-img {
  height: 180px;
  background: linear-gradient(135deg, #0F4C81, #06101e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(44, 206, 210, 0.3);
}

.blog-marquee-card:hover .card-img i {
  color: rgba(44, 206, 210, 0.8);
  transform: scale(1.1);
  transition: all 0.3s ease;
}

.blog-marquee-card .card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-marquee-card .cat-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  background: rgba(44, 206, 210, 0.1);
  color: #2CCED2;
  border-radius: 50px;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.blog-marquee-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem !important;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  color: #F8FAFC !important;
  transition: color 0.2s ease;
}

.blog-marquee-card:hover h3 {
  color: #2CCED2 !important;
}

.blog-marquee-card p {
  color: #64748B !important;
  font-size: 0.85rem !important;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-marquee-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(100, 116, 139, 0.1);
  font-size: 0.8rem;
  color: #64748B !important;
}

.blog-marquee-card .card-footer span:last-child {
  color: #2CCED2 !important;
  font-weight: 600;
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
  background: #070f1c !important;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Extremely subtle dual glow — left cyan, right navy */
  background:
    radial-gradient(ellipse at 15% 50%, rgba(44, 206, 210, 0.04) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 50%, rgba(15, 76, 129, 0.07) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.hero-title {
  font-size: 3.2rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.12 !important;
  /* Pure white title — most important text */
  color: #F8FAFC !important;
  background: none !important;
  -webkit-text-fill-color: #F8FAFC !important;
}

.hero-subtitle {
  color: #8fa4b8 !important;
  font-size: 1.1rem !important;
  line-height: 1.7 !important;
}

/* --- Ultra Premium Hero Badges --- */
.hero-badges-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.premium-rating-badge {
  background: rgba(15, 30, 55, 0.4) !important;
  border: 1px solid rgba(255, 215, 0, 0.3) !important;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.05) !important;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  backdrop-filter: blur(10px);
}

.premium-stars i {
  color: #FFD700 !important;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.premium-rating-text {
  color: #c4d4e4 !important;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.premium-rating-text strong {
  color: #fff !important;
  font-weight: 700;
}

.hplc-badge {
  background: rgba(44, 206, 210, 0.05) !important;
  border: 1px solid rgba(44, 206, 210, 0.4) !important;
  box-shadow: 0 4px 20px rgba(44, 206, 210, 0.1) !important;
  color: #2CCED2 !important;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  backdrop-filter: blur(10px);
}

.hplc-badge i {
  font-size: 1rem;
}

/* ============================
   BUTTONS
   ============================ */

/* PRIMARY BUTTON — Deep Navy CTA */
.btn-primary, button.btn-primary, a.btn-primary {
  background: linear-gradient(135deg, #1565c0 0%, #0F4C81 100%) !important;
  color: #F8FAFC !important;
  border: 1px solid rgba(15, 76, 129, 0.6) !important;
  box-shadow: 0 4px 18px rgba(15, 76, 129, 0.3) !important;
  font-weight: 600 !important;
}

.btn-primary:hover, button.btn-primary:hover, a.btn-primary:hover {
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%) !important;
  box-shadow: 0 8px 28px rgba(15, 76, 129, 0.4) !important;
  transform: translateY(-2px) !important;
  color: #F8FAFC !important;
}

/* OUTLINE BUTTON — Secondary Cyan border */
.btn-outline, button.btn-outline, a.btn-outline {
  background: transparent !important;
  color: #2CCED2 !important;
  border: 1.5px solid rgba(44, 206, 210, 0.4) !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}

.btn-outline:hover, button.btn-outline:hover, a.btn-outline:hover {
  background: rgba(44, 206, 210, 0.08) !important;
  color: #5ddde0 !important;
  border-color: rgba(44, 206, 210, 0.6) !important;
  box-shadow: 0 4px 20px rgba(44, 206, 210, 0.12) !important;
  transform: translateY(-2px) !important;
}

/* ============================
   CARDS & PANELS
   ============================ */
.card, .product-card, .testimonial-card,
[class*="card"], [class*="-panel"] {
  background: #0c1a2e !important;
  border: 1px solid rgba(100, 116, 139, 0.12) !important;
  border-radius: 12px !important;
}

.card:hover, .product-card:hover {
  border-color: rgba(44, 206, 210, 0.2) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(44, 206, 210, 0.08) !important;
}

/* ============================
   HERO IMAGE
   ============================ */
.hero-image {
  border-radius: 16px !important;
  box-shadow: 
    0 25px 60px rgba(0,0,0,0.6),
    0 0 0 1px rgba(44, 206, 210, 0.12),
    0 0 40px rgba(44, 206, 210, 0.06) !important;
}

/* ============================
   SECTION HEADINGS & ACCENTS
   ============================ */
.section-title, .section-heading, h2.title, h2 {
  color: #F8FAFC !important;
}

/* Accent underlines / dividers under section titles */
.section-title::after,
.title-underline,
.divider-line {
  background: #0F4C81 !important;
}

/* Highlighted/accented inline text */
.text-accent, .highlight, strong.accent {
  color: #2CCED2 !important;
}

/* ============================
   FORM ELEMENTS
   ============================ */
input, select, textarea {
  background: rgba(12, 26, 46, 0.8) !important;
  border: 1px solid rgba(100, 116, 139, 0.2) !important;
  color: #F8FAFC !important;
  border-radius: 8px !important;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(44, 206, 210, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(44, 206, 210, 0.08) !important;
  outline: none !important;
}

input::placeholder, textarea::placeholder {
  color: #64748B !important;
}

/* ============================
   BADGES & TAGS
   ============================ */
.badge, .tag, [class*="badge"], [class*="-tag"] {
  background: rgba(15, 76, 129, 0.15) !important;
  color: #2CCED2 !important;
  border: 1px solid rgba(44, 206, 210, 0.2) !important;
}

/* ============================
   FOOTER
   ============================ */
footer, .footer {
  background: #04090e !important;
  border-top: 1px solid rgba(44, 206, 210, 0.08) !important;
}

footer h3, footer h4, .footer h3, .footer h4 {
  color: #F8FAFC !important;
}

footer p, footer a, footer li, .footer p, .footer a, .footer li {
  color: #64748B !important;
}

footer a:hover, .footer a:hover {
  color: #2CCED2 !important;
}

/* ============================
   PRICE / VALUE HIGHLIGHTS
   ============================ */
.price, .amount, [class*="price"] {
  color: #2CCED2 !important;
  font-weight: 700 !important;
}

/* ============================
   STAT / METRIC NUMBERS
   ============================ */
.stat-number, .metric, .counter, [class*="stat"] {
  color: #F8FAFC !important;
  font-weight: 800 !important;
}

/* ============================
   SCROLLBAR (Optional polish)
   ============================ */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0c1a2e;
}
::-webkit-scrollbar-thumb {
  background: rgba(15, 76, 129, 0.5);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2CCED2;
}

/* ============================
   GLASSMORPHISM OVERRIDES
   ============================ */
[class*="glass"], [class*="-glass"] {
  background: rgba(12, 26, 46, 0.6) !important;
  border: 1px solid rgba(100, 116, 139, 0.1) !important;
  backdrop-filter: blur(16px) saturate(150%) !important;
}

/* ============================
   REMOVE ANY REMAINING STRAY BACKGROUNDS
   ============================ */
.about-grid-pattern,
.about-bg-blob,
.blob-1, .blob-2,
.molecular-helix,
.cinematic-bg {
  display: none !important;
}

/* ============================
   HERO BADGES (Professional Look)
   ============================ */
.hero-badges-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Ensure hero buttons are ultra premium */
.hero-actions .btn-primary {
  background: linear-gradient(135deg, #0d3b66 0%, #1565c0 100%) !important;
  border: 1px solid rgba(44, 206, 210, 0.4) !important;
  box-shadow: 0 0 20px rgba(44, 206, 210, 0.2), inset 0 0 10px rgba(44, 206, 210, 0.1) !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease !important;
}

.hero-actions .btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(44, 206, 210, 0.4), inset 0 0 15px rgba(44, 206, 210, 0.3) !important;
  border-color: rgba(44, 206, 210, 0.8) !important;
}

.hero-actions .btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease !important;
}

.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-3px);
}

.hero-title .text-glow {
  text-shadow: 0 0 25px rgba(44, 206, 210, 0.6), 0 0 50px rgba(44, 206, 210, 0.3) !important;
  background: linear-gradient(to right, #2CCED2, #60a5fa) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* ============================
   PRODUCTS MARQUEE (Home Page)
   ============================ */
.products-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1rem 0 3rem;
  /* Fading edges for the scrolling container */
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.products-marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scroll-products-cards 50s linear infinite;
}

.products-marquee-track:hover {
  animation-play-state: paused;
}

/* Ensure the cards have a fixed width within the marquee */
.products-marquee-track .product-card {
  width: 340px;
  flex-shrink: 0;
  margin: 0;
}

@keyframes scroll-products-cards {
  0% { transform: translateX(0); }
  /* Translate left by 50% plus half the gap width (2rem = 32px roughly). */
  /* If we triplicate items, we scroll by -33.333% minus gap adjustments. 
     Wait, if we have [1,2,3,1,2,3,1,2,3] and we translate, it's easier to just use calc(-33.333% - 0.666rem).
     Since we duplicated the array 3 times in JS, moving -33.333% will perfectly loop it. */
  100% { transform: translateX(calc(-33.3333% - 0.6666rem)); }
}

/* ============================
   PREMIUM STATS GRID
   ============================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.stat-card {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-radius: 1.25rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 30, 55, 0.4) 0%, rgba(10, 20, 35, 0.8) 100%);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.stat-top-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}

.stat-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.35rem;
  transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon-wrapper {
  transform: scale(1.15) rotate(5deg);
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: 'Outfit', sans-serif;
}

.stat-stars {
  margin: 0.75rem 0;
  color: #FFD700;
  font-size: 1.1rem;
  letter-spacing: 4px;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
}

.stat-title {
  color: #e2e8f0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-top: 1rem;
}

.stat-desc {
  color: #94a3b8;
  font-size: 0.75rem;
  margin-top: 0.35rem;
  opacity: 0.8;
}

/* Colors */
.stat-card.border-blue { border: 1px solid rgba(37, 99, 235, 0.2); }
.stat-card.border-blue:hover { border-color: rgba(37, 99, 235, 0.5); box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15); }
.bg-blue { background: linear-gradient(90deg, #0284c7, #3b82f6); }
.bg-blue-light { background: rgba(37, 99, 235, 0.12); border: 1px solid rgba(37, 99, 235, 0.25); }
.text-blue { color: #3b82f6; text-shadow: 0 0 10px rgba(59, 130, 246, 0.4); }
.text-gradient-blue { background: linear-gradient(135deg, #3b82f6, #22d3ee); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.stat-card.border-green { border: 1px solid rgba(16, 185, 129, 0.2); }
.stat-card.border-green:hover { border-color: rgba(16, 185, 129, 0.5); box-shadow: 0 15px 35px rgba(16, 185, 129, 0.15); }
.bg-green { background: linear-gradient(90deg, #059669, #10b981); }
.bg-green-light { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.25); }
.text-green { color: #10b981; text-shadow: 0 0 10px rgba(16, 185, 129, 0.4); }

.stat-card.border-purple { border: 1px solid rgba(139, 92, 246, 0.2); }
.stat-card.border-purple:hover { border-color: rgba(139, 92, 246, 0.5); box-shadow: 0 15px 35px rgba(139, 92, 246, 0.15); }
.bg-purple { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.bg-purple-light { background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.25); }
.text-purple { color: #a78bfa; text-shadow: 0 0 10px rgba(167, 139, 250, 0.4); }

.stat-card.border-yellow { border: 1px solid rgba(245, 158, 11, 0.2); }
.stat-card.border-yellow:hover { border-color: rgba(245, 158, 11, 0.5); box-shadow: 0 15px 35px rgba(245, 158, 11, 0.15); }
.bg-yellow { background: linear-gradient(90deg, #d97706, #fbbf24); }
.bg-yellow-light { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.25); }
.text-yellow { color: #fbbf24; text-shadow: 0 0 10px rgba(251, 191, 36, 0.4); }

/* Responsive adjustments */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .stat-card {
    padding: 1.5rem 1rem;
  }
  .stat-value {
    font-size: 2rem;
  }
  .stat-icon-wrapper {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  .stat-title {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
  }
  .stat-desc {
    display: none; /* Hide description on very small screens for cleaner look */
  }
  .stat-stars {
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin: 0.25rem 0;
  }
}

/* ====================================================
   PROFESSIONAL POLISH — Global Enhancements v2
   Mobile-first refinements for premium feel on all screens
   ==================================================== */

/* ---- Improved Hero on Mobile ---- */
@media (max-width: 768px) {
  .hero {
    padding-top: 5.5rem !important;
    padding-bottom: 2.5rem !important;
    text-align: center !important;
  }
  .hero-title {
    font-size: 2.1rem !important;
    line-height: 1.18 !important;
  }
  .hero-subtitle {
    font-size: 0.95rem !important;
    max-width: 90vw !important;
    margin: 0 auto 1.5rem !important;
  }
  .hero-image {
    border-radius: 1.25rem;
    max-height: 280px !important;
    object-fit: cover;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5) !important;
  }
  .floating-hero-card {
    left: 0.75rem !important;
    bottom: 0.5rem !important;
    padding: 0.85rem 1.25rem !important;
    border-radius: 0.75rem !important;
  }
  .hero-badges-wrapper {
    justify-content: center !important;
    gap: 0.6rem !important;
    margin-bottom: 1rem !important;
  }
  .premium-rating-badge, .hplc-badge {
    font-size: 0.78rem !important;
    padding: 0.4rem 0.85rem !important;
  }
  .hero-actions a.btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.9rem 1.5rem !important;
  }
}

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ---- Section headers ---- */
.section-header h2, h2.text-gradient {
  font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.2 !important;
}
.badge {
  display: inline-flex !important; align-items: center !important;
  font-size: 0.75rem !important; font-weight: 700 !important;
  letter-spacing: 0.1em !important; text-transform: uppercase !important;
  color: #2CCED2 !important; background: rgba(44,206,210,0.08) !important;
  border: 1px solid rgba(44,206,210,0.2) !important;
  padding: 0.35rem 1rem !important; border-radius: 999px !important;
}

/* ---- Trust bar ---- */
.trust-bar-premium {
  border-top: 1px solid rgba(44,206,210,0.08) !important;
  border-bottom: 1px solid rgba(44,206,210,0.08) !important;
  padding: 1rem 0;
}
.trust-flex { display: flex !important; flex-wrap: wrap !important; justify-content: center !important; gap: 0.5rem 1.5rem !important; }
.trust-mini-item { display: flex !important; align-items: center !important; gap: 0.5rem !important; font-size: 0.72rem !important; font-weight: 700 !important; letter-spacing: 0.08em !important; color: #8fa4b8 !important; white-space: nowrap; transition: color 0.2s; }
.trust-mini-item:hover { color: #2CCED2 !important; }
.trust-mini-item i { color: #2CCED2 !important; font-size: 1rem !important; }
.trust-separator { width: 1px; height: 18px; background: rgba(44,206,210,0.2); display: none; }
@media (min-width: 768px) { .trust-separator { display: block !important; } }

/* ---- Product card polish ---- */
.products-marquee-track .product-card {
  border-radius: 1.25rem !important; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
  border: 1px solid rgba(44,206,210,0.1) !important;
}
.products-marquee-track .product-card:hover {
  transform: translateY(-6px) scale(1.01) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(44,206,210,0.15) !important;
  border-color: rgba(44,206,210,0.25) !important;
}
@media (max-width: 768px) {
  .products-marquee-track { animation-duration: 35s !important; gap: 1.25rem !important; }
  .products-marquee-track .product-card { width: 260px !important; }
  .products-marquee-container { padding: 0.5rem 0 2rem !important; }
}

/* ---- About section mobile ---- */
@media (max-width: 768px) {
  .about-master-wrapper { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .about-excellence-card-wrapper { display: none !important; }
  .narrative-title { font-size: 1.7rem !important; }
  .narrative-pillars { grid-template-columns: 1fr !important; gap: 0.75rem !important; }
  .lab-master-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .lab-graphic-col { display: none !important; }
}

/* ---- Glass panels ---- */
.glass-panel {
  background: linear-gradient(135deg, rgba(15,30,55,0.6) 0%, rgba(7,15,28,0.8) 100%) !important;
  backdrop-filter: blur(16px) saturate(150%) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04) !important;
}

/* ---- Focus visible ---- */
:focus-visible { outline: 2px solid #2CCED2 !important; outline-offset: 2px !important; }

/* ---- Testimonials mobile ---- */
@media (max-width: 480px) {
  .testimonial-quote { font-size: 0.9rem !important; }
  .testimonial-slide { padding: 1.25rem 1rem !important; min-height: unset !important; }
}

/* ---- Smooth scroll ---- */
html { scroll-behavior: smooth !important; }

/* ====================================================
   MOBILE SIDEBAR FOOTER — PREMIUM REDESIGN
   ==================================================== */
.mobile-sidebar-footer {
    background: linear-gradient(180deg, rgba(7,15,28,0) 0%, rgba(4,9,18,0.98) 100%) !important;
    border-top: 1px solid rgba(44, 206, 210, 0.12) !important;
    padding: 1.25rem 1.5rem 1.5rem !important;
    position: relative;
}

.mobile-sidebar-footer::before {
    content: '';
    display: block;
    height: 1px;
    width: 40px;
    background: #2CCED2;
    border-radius: 99px;
    margin: 0 auto 1rem;
    opacity: 0.5;
}

.sidebar-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.sidebar-footer-label {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: #64748b !important;
    text-align: center !important;
    margin: 0 0 0.35rem !important;
}

.sidebar-cta-btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    padding: 0.85rem 1.25rem !important;
    border-radius: 0.875rem !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    transition: all 0.25s ease !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.3 !important;
    text-align: center !important;
}

.sidebar-cta-btn i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* ====================================================
   PRODUCTS PAGE — RESPONSIVE QUOTE NOW BUTTON
   ==================================================== */
.cat-quote-btn {
    padding: 0.55rem 1.2rem !important;
    font-size: 0.78rem !important;
    white-space: nowrap;
    flex-shrink: 0;
}

/* On smaller tablets/phones — shrink to icon only */
@media (max-width: 480px) {
    .cat-quote-btn {
        padding: 0.55rem 0.85rem !important;
        font-size: 0 !important;  /* hide text */
    }
    .cat-quote-btn i {
        font-size: 1.1rem !important;
        margin-right: 0 !important;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .cat-quote-btn {
        padding: 0.5rem 0.9rem !important;
        font-size: 0.72rem !important;
    }
}
