/* ═══════════════════════════════════════════════════════════════════════════
   NuLine Premium Layer - elevates the base stylesheet with luxury-tier polish
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Premium root tokens ─────────────────────────────────────────────────── */
:root {
  --gold-accent:   #c8a96e;
  --shadow-glow:   0 0 0 1px rgba(0,168,232,.15), 0 8px 32px rgba(18,32,90,.18);
  --shadow-lift:   0 24px 64px rgba(18,32,90,.22);
  --border-glass:  rgba(255,255,255,.12);
  --blur-glass:    blur(18px);
  --radius-card:   18px;
  --transition-premium: all .35s cubic-bezier(.16,1,.3,1);
}

/* ── Subtle grain overlay on the whole page ──────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ── Premium header - thinner bottom rule + color glow ──────────────────── */
.site-header {
  border-bottom: 1px solid rgba(0,168,232,.12);
  box-shadow: 0 1px 0 rgba(0,168,232,.05), 0 8px 32px rgba(0,0,0,.12);
}
.site-header.scrolled {
  box-shadow: 0 1px 0 rgba(0,168,232,.1), 0 8px 40px rgba(0,0,0,.28);
}

/* ── Shimmer on primary button ───────────────────────────────────────────── */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #00a8e8 0%, #00c4e8 45%, #00d4d4 100%);
  box-shadow: 0 4px 20px rgba(0,168,232,.45), inset 0 1px 0 rgba(255,255,255,.2);
  transition: var(--transition-premium);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%);
  transition: left .6s ease;
}
.btn-primary:hover::after { left: 160%; }
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0,168,232,.55), inset 0 1px 0 rgba(255,255,255,.2);
}

/* ── Premium outline-white button ───────────────────────────────────────── */
.btn-outline-white {
  border-color: rgba(255,255,255,.4);
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.06);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.75);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}

/* ── Hero upgrades ───────────────────────────────────────────────────────── */
.home-hero {
  background-attachment: scroll;
}

/* Animated teal orb in hero */
.home-hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,212,.12) 0%, transparent 70%);
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  pointer-events: none;
  animation: heroOrb 8s ease-in-out infinite alternate;
}
@keyframes heroOrb {
  0%   { transform: translateY(-50%) scale(1); opacity: .8; }
  100% { transform: translateY(-55%) scale(1.15); opacity: 1; }
}

/* Premium eyebrow pill ──────────────────────────────────────────────────── */
.hero-eyebrow, .section-eyebrow {
  background: linear-gradient(135deg, rgba(0,168,232,.15) 0%, rgba(0,212,212,.15) 100%);
  border: 1px solid rgba(0,168,232,.3);
  border-radius: 50px;
  padding: .375rem 1rem;
  backdrop-filter: blur(8px);
}

/* Hero trust strip under CTA ────────────────────────────────────────────── */
.hero-trust-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  font-weight: 500;
}
.hero-trust-item svg {
  color: var(--teal);
  flex-shrink: 0;
}

/* ── Stats bar - premium glassmorphism ───────────────────────────────────── */
.stats-bar {
  background: linear-gradient(135deg, rgba(11,21,64,.98) 0%, rgba(18,32,90,.98) 100%);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: var(--blur-glass);
}
.stat-item {
  position: relative;
  transition: var(--transition-premium);
}
.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
  border-radius: 2px;
  transition: transform .4s ease;
}
.stat-item:hover::after { transform: translateX(-50%) scaleX(1); }
.stat-number {
  font-size: clamp(2.75rem, 4.5vw, 4rem);
}

/* ── Premium cards ───────────────────────────────────────────────────────── */
.card {
  border: 1px solid rgba(221,227,240,.7);
  box-shadow: 0 2px 12px rgba(18,32,90,.06);
  transition: var(--transition-premium);
}
.card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(0,168,232,.2);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0,168,232,.04) 0%, rgba(0,212,212,.04) 100%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.card { position: relative; }
.card:hover::before { opacity: 1; }

/* Card image - premium overlay on hover */
.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,21,64,.35) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.card-image { position: relative; }
.card:hover .card-image::after { opacity: 1; }

/* ── Study cards - premium badge ─────────────────────────────────────────── */
.badge-enrolling {
  background: linear-gradient(135deg, rgba(0,168,232,.12) 0%, rgba(0,212,212,.12) 100%);
  border: 1px solid rgba(0,168,232,.25);
  color: var(--cyan-dark);
  backdrop-filter: blur(4px);
}

/* ── Doctor cards ─────────────────────────────────────────────────────────── */
.doctor-card {
  transition: var(--transition-premium);
}
.doctor-photo {
  width: 130px;
  height: 130px;
  border: 3px solid transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box,
              linear-gradient(135deg, var(--cyan) 0%, var(--teal) 100%) border-box;
  box-shadow: 0 4px 20px rgba(0,168,232,.25), 0 0 0 6px rgba(0,168,232,.06);
  transition: var(--transition-premium);
}
.doctor-card:hover .doctor-photo {
  box-shadow: 0 8px 28px rgba(0,168,232,.4), 0 0 0 8px rgba(0,168,232,.1);
  transform: scale(1.04);
}

/* ── Why Participate - premium glass cards ────────────────────────────────── */
.why-stat-card {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-card);
  transition: var(--transition-premium);
}
.why-stat-card:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(0,168,232,.35);
  transform: translateX(8px);
  box-shadow: 0 8px 32px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.1);
}
.why-stat-card.accent {
  border-color: rgba(0,212,212,.3);
  background: rgba(0,212,212,.06);
}

/* ── Sections - premium spacing and backgrounds ───────────────────────────── */
.section {
  padding: 6rem 0;
}
.bg-light {
  background: linear-gradient(180deg, #f7f9fc 0%, #eef2f9 100%);
}


/* ── How It Works steps - upgraded ───────────────────────────────────────── */
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-premium);
  padding: 2.5rem 1.75rem;
}
.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(0,168,232,.2);
}
.step-number {
  width: 70px;
  height: 70px;
  font-size: 1.25rem;
  box-shadow: 0 6px 24px rgba(0,168,232,.4), 0 0 0 6px rgba(0,168,232,.08);
  transition: var(--transition-premium);
}
.step:hover .step-number {
  box-shadow: 0 10px 32px rgba(0,168,232,.55), 0 0 0 8px rgba(0,168,232,.14);
  transform: scale(1.05);
}

/* ── Standards grid - premium ──────────────────────────────────────────── */
.standard-icon {
  width: 88px;
  height: 88px;
  transition: var(--transition-premium);
  box-shadow: 0 4px 16px rgba(0,168,232,.1);
}
.standard-item:hover .standard-icon {
  box-shadow: 0 8px 28px rgba(0,168,232,.45);
  transform: scale(1.08);
}
.standard-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-premium);
}
.standard-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(0,168,232,.2);
}

/* ── CTA Banner - premium shimmer ───────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #0086c0 0%, #0b1540 40%, #12205a 70%, #006b9c 100%);
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,212,.15) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  pointer-events: none;
  animation: ctaOrb 10s ease-in-out infinite alternate;
}
@keyframes ctaOrb {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 40px) scale(1.2); }
}

/* ── Blog cards - premium ────────────────────────────────────────────────── */
.blog-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: var(--transition-premium);
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

/* ── Sidebar cards - premium ─────────────────────────────────────────────── */
.sidebar-card {
  border-radius: var(--radius-card);
  border: 1px solid rgba(221,227,240,.8);
  box-shadow: 0 2px 16px rgba(18,32,90,.07);
  transition: var(--transition-premium);
}
.sidebar-cta {
  background: linear-gradient(135deg, rgba(0,168,232,.06) 0%, rgba(0,212,212,.06) 100%);
  border: 1px solid rgba(0,168,232,.2);
}

/* ── Contact form - premium ──────────────────────────────────────────────── */
.contact-form-card {
  border-radius: 24px;
  border: 1px solid rgba(221,227,240,.8);
  box-shadow: 0 16px 56px rgba(18,32,90,.13), 0 1px 0 rgba(255,255,255,.9) inset;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0,168,232,.12), 0 2px 8px rgba(0,168,232,.1);
}

/* ── Value cards - About page ─────────────────────────────────────────────── */
.value-card {
  border-radius: var(--radius-card);
  transition: var(--transition-premium);
}
.value-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lift);
}
.value-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,168,232,.15);
  transition: var(--transition-premium);
}
.value-card:hover .value-icon {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--teal) 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0,168,232,.45);
}

/* ── Prose - premium typography ──────────────────────────────────────────── */
.prose {
  font-size: 1.0625rem;
  line-height: 1.85;
}
.prose h2 {
  border-top: none;
  padding-top: 0;
  position: relative;
  padding-left: 1.25rem;
}
.prose h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: .15em;
  bottom: .15em;
  width: 4px;
  background: linear-gradient(to bottom, var(--cyan), var(--teal));
  border-radius: 4px;
}
.prose blockquote {
  border-left: 4px solid transparent;
  background: linear-gradient(135deg, rgba(0,168,232,.05) 0%, rgba(0,212,212,.05) 100%);
  border-image: linear-gradient(to bottom, var(--cyan), var(--teal)) 1;
  box-shadow: var(--shadow-sm);
  font-style: normal;
  padding: 1.5rem 2rem;
}

/* ── Footer - premium ─────────────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, #090f20 0%, #0b1540 100%);
  border-top: 1px solid rgba(0,168,232,.12);
}
.footer-social a {
  transition: var(--transition-premium);
  border: 1px solid rgba(255,255,255,.08);
}
.footer-social a:hover {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--teal) 100%);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(0,168,232,.4);
  transform: translateY(-2px);
}

/* ── Scroll animations - upgraded ───────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
[data-animate].animated {
  opacity: 1;
  transform: none;
}

/* ── Premium tag pills ────────────────────────────────────────────────────── */
.tag {
  background: linear-gradient(135deg, rgba(0,168,232,.1) 0%, rgba(0,212,212,.1) 100%);
  border: 1px solid rgba(0,168,232,.2);
  transition: var(--transition-premium);
}
.tag:hover {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--teal) 100%);
  color: var(--white);
  border-color: transparent;
}

/* ── Study sidebar CTA - premium ─────────────────────────────────────────── */
.sidebar-cta {
  background: linear-gradient(135deg, rgba(0,168,232,.07) 0%, rgba(0,212,212,.07) 100%);
  border: 1px solid rgba(0,168,232,.22);
  position: relative;
  overflow: hidden;
}
.sidebar-cta::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,212,.15) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Pagination - premium ─────────────────────────────────────────────────── */
.pagination a:hover {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--teal) 100%);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0,168,232,.3);
  transform: translateY(-1px);
}
.pagination a { transition: var(--transition-premium); }

/* ── Post nav - premium ───────────────────────────────────────────────────── */
.post-nav-item {
  border-radius: var(--radius-card);
  transition: var(--transition-premium);
}
.post-nav-item:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* ── Mobile sticky bar - premium ─────────────────────────────────────────── */
.mobile-cta-bar {
  background: linear-gradient(135deg, rgba(11,21,64,.97) 0%, rgba(18,32,90,.97) 100%);
  border-top: 1px solid rgba(0,168,232,.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -8px 32px rgba(0,0,0,.3);
}

/* ── Filter buttons - premium ────────────────────────────────────────────── */
.filter-btn:hover, .filter-btn.active,
.tag-btn:hover, .tag-btn.active {
  box-shadow: 0 4px 16px rgba(0,168,232,.35);
}

/* ── Section eyebrow accent line ─────────────────────────────────────────── */
.section-header::before {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
  border-radius: 2px;
  margin: 0 auto 1.25rem;
}

/* ── Smooth image loading ─────────────────────────────────────────────────── */
img {
  transition: opacity .4s ease;
}

/* ── Custom scrollbar ─────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, var(--cyan), var(--teal)); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-dark); }

/* ── Selection color ──────────────────────────────────────────────────────── */
::selection { background: rgba(0,168,232,.2); color: var(--navy); }
