/* ============================================================
   KingPharm — Design System v2
   Primary  #006E5A / #00AB8C
   Accent   #9E8C00 / #FFE100
   ============================================================ */

:root {
  --g-950: #004d3e;
  --g-900: #006E5A;
  --g-700: #00AB8C;
  --g-500: #00d4aa;
  --g-300: #72FFE5;
  --g-100: #e6faf6;
  --g-50:  #f0fdf9;

  --y-900: #7a6b00;
  --y-700: #b8a000;
  --y-500: #FFE100;
  --y-400: #FFED68;
  --y-100: #FFFCE9;

  --n-950: #0f0f0f;
  --n-900: #1a1a1a;
  --n-800: #2e2e2e;
  --n-600: #5c5c5c;
  --n-400: #9c9c9c;
  --n-300: #d0d0d0;
  --n-200: #e8e8e8;
  --n-100: #f4f4f4;
  --n-50:  #fafafa;

  --brand-primary:   var(--g-900);
  --brand-secondary: var(--g-700);
  --brand-accent:    var(--y-500);
  --brand-dark:      var(--g-950);
  --text-primary:    #111111;
  --text-secondary:  #3d3d3d;
  --text-muted:      var(--n-600);
  --bg-light:        var(--n-50);
  --bg-white:        #ffffff;
  --border-color:    var(--n-200);
  --shadow-sm:       0 1px 4px rgba(0,0,0,.06);
  --shadow-md:       0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:       0 12px 48px rgba(0,0,0,.12);
  --shadow-brand:    0 8px 32px rgba(0,110,90,.18);

  --font-sans:    'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-display: 'Barlow', var(--font-sans);

  --section-py: 6rem;
  --header-h:   72px;
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --trans:      all 0.26s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

a { color: var(--brand-secondary); text-decoration: none; transition: var(--trans); }
a:hover { color: var(--brand-primary); }
img { max-width: 100%; height: auto; display: block; }

/* ─── Header ───────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  transition: var(--trans);
}
.site-header.scrolled {
  border-bottom-color: var(--border-color);
  box-shadow: 0 2px 28px rgba(0,110,90,.08);
}
.site-header .navbar { height: var(--header-h); padding: 0; }

/* Logo */
.logo-king {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: .06em;
  color: var(--brand-primary);
}
.logo-pharm {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.45rem;
  letter-spacing: .06em;
  color: var(--y-700);
}

/* Nav */
.navbar-nav .nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary) !important;
  padding: .5rem 1rem !important;
  position: relative;
  transition: var(--trans);
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--g-700), var(--g-500));
  border-radius: 2px;
  transition: var(--trans);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--brand-primary) !important; }
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { left: 1rem; right: 1rem; }

/* Dropdown */
.dropdown-menu {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  padding: .5rem;
  margin-top: .5rem !important;
}
.dropdown-item {
  border-radius: var(--radius-sm);
  font-size: .875rem;
  padding: .5rem 1rem;
  transition: var(--trans);
  color: var(--text-secondary);
}
.dropdown-item:hover {
  background: var(--g-100);
  color: var(--brand-primary);
  padding-left: 1.25rem;
}

/* Buttons */
.btn-primary-brand {
  background: linear-gradient(135deg, var(--g-900), var(--g-700));
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--trans);
  box-shadow: 0 2px 12px rgba(0,110,90,.25);
}
.btn-primary-brand:hover {
  background: linear-gradient(135deg, var(--g-700), var(--g-500));
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,110,90,.35);
}
.btn-outline-brand {
  background: transparent;
  border: 1.5px solid var(--brand-primary);
  color: var(--brand-primary);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--trans);
}
.btn-outline-brand:hover {
  background: var(--brand-primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand);
}
.btn-accent {
  background: var(--brand-accent);
  border: 2px solid var(--brand-accent);
  color: var(--y-900);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: var(--trans);
  box-shadow: 0 2px 12px rgba(255,225,0,.3);
}
.btn-accent:hover {
  background: var(--y-400);
  border-color: var(--y-400);
  color: var(--y-900);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,225,0,.4);
}

/* ─── Hero Section ─────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  padding: calc(var(--header-h) + 4rem) 0 7rem;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(0,213,170,.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 80% at 10% 80%, rgba(255,225,0,.08) 0%, transparent 50%),
    linear-gradient(150deg, var(--g-950) 0%, var(--g-900) 50%, var(--g-900) 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle dot-grid texture */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

/* Bottom wave */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 90px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90'%3E%3Cpath fill='%23ffffff' d='M0,45 C240,90 480,0 720,45 C960,90 1200,0 1440,45 L1440,90 L0,90 Z'/%3E%3C/svg%3E") center/cover;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,225,0,.15);
  border: 1px solid rgba(255,225,0,.4);
  color: var(--y-400);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}

.hero-title {
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  letter-spacing: -.01em;
}
.hero-title .accent {
  color: var(--y-500);
  position: relative;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.78);
  margin-bottom: 2.5rem;
  max-width: 520px;
  font-weight: 300;
  line-height: 1.85;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.15);
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--y-400);
  line-height: 1;
}
.hero-stat-label {
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  margin-top: 5px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* Hero visual */
.hero-visual { position: relative; padding: 1rem 0 3rem; }
.hero-card-float {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  color: #fff;
  margin-bottom: 1rem;
  transition: var(--trans);
}
.hero-card-float:hover {
  background: rgba(255,255,255,.14);
  transform: translateX(4px);
}
.hero-card-float h6 {
  color: var(--y-400);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .4rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-card-float p { margin: 0; font-size: .875rem; opacity: .88; line-height: 1.6; }

.cert-badges {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.cert-badge {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,225,0,.35);
  color: var(--y-400);
  font-size: .7rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 5px;
  letter-spacing: .07em;
}

/* ─── Section Utilities ────────────────────────────────── */
.section-py { padding: var(--section-py) 0; }
.section-bg-light { background: var(--bg-light); }
.section-bg-green {
  background: linear-gradient(135deg, var(--g-950) 0%, var(--g-900) 60%, var(--g-700) 100%);
  position: relative;
  overflow: hidden;
}
.section-bg-green::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.section-tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}
.section-tag::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--g-700), var(--g-500));
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -.01em;
}
.section-desc {
  color: var(--text-muted);
  font-size: .975rem;
  line-height: 1.85;
  max-width: 560px;
}

/* ─── Stats Strip ──────────────────────────────────────── */
.stats-strip {
  background: linear-gradient(135deg, var(--g-950), var(--g-900));
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}
.stats-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--y-400);
  line-height: 1;
}
.stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  margin-top: 6px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  background: rgba(255,255,255,.12);
  align-self: stretch;
}
.stats-strip .col-6:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,.1);
}

/* ─── Info / Feature Cards ────────────────────────────── */
.info-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--trans);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.info-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0,171,141,.06), transparent);
  opacity: 0;
  transition: var(--trans);
  pointer-events: none;
}
.info-card:hover {
  border-color: rgba(0,171,141,.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,110,90,.13);
}
.info-card:hover::after { opacity: 1; }
.info-card-icon {
  width: 54px; height: 54px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--g-100), var(--g-50));
  border: 1px solid rgba(0,171,141,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: var(--brand-secondary);
  margin-bottom: 1rem;
  transition: var(--trans);
  flex-shrink: 0;
}
.info-card:hover .info-card-icon {
  background: linear-gradient(135deg, var(--g-700), var(--g-500));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,171,141,.35);
}

/* ─── Subsidiary Cards ─────────────────────────────────── */
.subsidiary-card {
  text-align: center;
  padding: 2.25rem 1.75rem;
  cursor: pointer;
}
.subsidiary-card .info-card-icon {
  width: 68px; height: 68px;
  margin: 0 auto 1.25rem;
  border-radius: var(--radius-md);
  font-size: 1.75rem;
}
.subsidiary-card h5 { font-size: 1rem; margin-bottom: .6rem; color: var(--text-primary); }
.subsidiary-card p { font-size: .85rem; }
.subsidiary-card .btn { margin-top: 1.25rem; font-size: .8rem; }
.subsidiary-card:hover { border-color: var(--brand-secondary); }

.subsidiary-logo {
  width: 40px; height: 40px;
  object-fit: contain;
}

/* ─── Product Cards ────────────────────────────────────── */
.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--trans);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: rgba(0,171,141,.35);
  box-shadow: 0 14px 48px rgba(0,110,90,.13);
  transform: translateY(-5px);
}
.product-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--g-100) 0%, var(--g-50) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--brand-secondary);
  overflow: hidden;
  position: relative;
}
.product-card-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(to top, rgba(0,110,90,.06), transparent);
}
.product-card-img img { max-width: calc(100% - 24px); max-height: calc(100% - 24px); width: auto; height: auto; }
.product-card-body { padding: 1.35rem; display: flex; flex-direction: column; flex: 1; }
.product-card-body .btn { margin-top: auto; }
.product-card-category {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--brand-secondary);
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.product-card-title { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; min-height: 3rem; }
.product-card-en { font-size: .78rem; color: var(--text-muted); margin-bottom: .75rem; }
.product-card-desc {
  font-size: .83rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

/* ─── Timeline ─────────────────────────────────────────── */
.timeline { position: relative; padding: 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--g-300) 5%, var(--g-900) 50%, var(--g-300) 95%, transparent);
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
}
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-dot {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-secondary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--brand-secondary);
  z-index: 2;
  transition: var(--trans);
}
.timeline-item:hover .timeline-dot {
  background: var(--brand-accent);
  box-shadow: 0 0 0 4px rgba(255,225,0,.4);
  transform: translateX(-50%) scale(1.35);
}
.timeline-content {
  width: calc(50% - 2.5rem);
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--trans);
}
.timeline-item:nth-child(odd) .timeline-content  { margin-right: auto; }
.timeline-item:nth-child(even) .timeline-content { margin-left: auto; }
.timeline-content:hover {
  border-color: rgba(0,171,141,.35);
  box-shadow: 0 8px 32px rgba(0,110,90,.1);
  transform: scale(1.01);
}
.timeline-year {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--brand-secondary);
  line-height: 1;
  margin-bottom: .4rem;
}
.timeline-title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.timeline-desc { font-size: .85rem; color: var(--text-muted); margin: 0; line-height: 1.7; }

@media (max-width: 768px) {
  .timeline::before { left: 18px; }
  .timeline-item, .timeline-item:nth-child(even) { flex-direction: row; }
  .timeline-dot { left: 18px; }
  .timeline-content, .timeline-item:nth-child(even) .timeline-content {
    width: calc(100% - 3.5rem);
    margin-left: 3.5rem !important;
    margin-right: 0 !important;
  }
}

/* ─── Category Filter ──────────────────────────────────── */
.category-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn {
  padding: 7px 20px;
  border: 1.5px solid var(--border-color);
  border-radius: 100px;
  background: transparent;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--trans);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,110,90,.2);
  text-decoration: none;
}

/* ─── Contact Form ─────────────────────────────────────── */
.contact-form-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 48px rgba(0,0,0,.07);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
}
.form-control, .form-select {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: .625rem 1rem;
  font-size: .9rem;
  transition: var(--trans);
  font-family: var(--font-sans);
  background: var(--n-50);
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 3px rgba(0,171,141,.12);
  outline: none;
  background: #fff;
}
.form-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: .4rem;
}
.input-group .input-group-text {
  background: var(--n-50);
  border: 1.5px solid var(--border-color);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: var(--text-muted);
}
.input-group .form-control { border-left: none; }
.input-group .form-control:focus { box-shadow: none; }
.input-group:focus-within .input-group-text,
.input-group:focus-within .form-control {
  border-color: var(--brand-secondary);
}

/* ─── Certifications ───────────────────────────────────── */
.cert-list { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.cert-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--g-100);
  border: 1px solid rgba(0,171,141,.2);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--brand-primary);
  transition: var(--trans);
}
.cert-item:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}
.cert-item i { font-size: 1rem; color: var(--brand-secondary); transition: var(--trans); }
.cert-item:hover i { color: var(--y-400); }

/* ─── Page Hero (inner pages) ──────────────────────────── */
.page-hero {
  background:
    radial-gradient(ellipse 70% 80% at 90% 50%, rgba(0,213,170,.2) 0%, transparent 60%),
    linear-gradient(150deg, var(--g-950) 0%, var(--g-900) 100%);
  padding: calc(var(--header-h) + 3.5rem) 0 4.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23ffffff' d='M0,30 C480,60 960,0 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E") center/cover;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); margin-top: 1rem; }
.page-hero p { color: rgba(255,255,255,.75); margin-top: .75rem; font-size: 1.05rem; }
.breadcrumb { margin-bottom: 0; }
.breadcrumb-item.active { color: var(--y-400); font-weight: 500; }
.breadcrumb-item a { color: rgba(255,255,255,.6); }
.breadcrumb-item a:hover { color: #fff; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.3); }

/* ─── Account Pages ────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  padding-top: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(150deg, var(--g-100) 0%, #fff 60%);
}
.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 60px rgba(0,110,90,.1);
  border: 1px solid var(--border-color);
  padding: 2.75rem;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo .logo-king, .auth-logo .logo-pharm { font-size: 2rem; }

/* ─── Footer ───────────────────────────────────────────── */
.site-footer {
  background: var(--n-950);
  color: rgba(255,255,255,.7);
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--g-900), var(--g-700), var(--g-500), var(--y-500));
}
.footer-main { padding: 5rem 0 3.5rem; }
.footer-brand .logo-king  { color: var(--g-300); font-size: 1.75rem; }
.footer-brand .logo-pharm { color: var(--y-400); font-size: 1.75rem; }
.footer-desc { font-size: .87rem; color: rgba(255,255,255,.45); line-height: 1.85; margin-top: 1rem; }
.footer-heading {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: 1.25rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.45);
  transition: var(--trans);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.footer-links a::before {
  content: '';
  display: block;
  width: 0; height: 1px;
  background: var(--g-500);
  transition: var(--trans);
}
.footer-links a:hover {
  color: var(--g-300);
  padding-left: 0;
}
.footer-links a:hover::before { width: 10px; }
.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-list li {
  display: flex;
  gap: 12px;
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  margin-bottom: .75rem;
  align-items: flex-start;
  line-height: 1.6;
}
.footer-contact-list i { color: var(--g-500); margin-top: 2px; flex-shrink: 0; font-size: 1rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  color: rgba(255,255,255,.55);
  font-size: 1rem;
  transition: var(--trans);
}
.social-link:hover {
  background: var(--brand-secondary);
  border-color: var(--brand-secondary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,171,141,.35);
}
.footer-social { display: flex; gap: .75rem; margin-top: 1.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1.5rem 0;
  font-size: .8rem;
  color: rgba(255,255,255,.3);
}

/* ─── Pagination ─────────────────────────────────────────── */
.page-link {
  color: var(--brand-primary);
  border-color: var(--border-color);
  border-radius: var(--radius-sm) !important;
  margin: 0 2px;
  font-size: .875rem;
  padding: .45rem .8rem;
}
.page-item.active .page-link {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}
.page-link:hover { background: var(--g-100); color: var(--brand-primary); }

/* ─── Alert ──────────────────────────────────────────────── */
.alert-success-brand {
  background: var(--g-100);
  border: 1px solid rgba(0,171,141,.3);
  color: var(--brand-primary);
  border-radius: var(--radius-sm);
}

/* ─── Animations ────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  33%  { transform: translateX(5px) rotate(.3deg); }
  66%  { transform: translateX(-3px) rotate(-.3deg); }
}
@keyframes pulse-ring {
  0%   { transform: scale(.9); opacity: .6; }
  100% { transform: scale(1.5); opacity: 0; }
}

.animate-fade-in-up { animation: fadeInUp 0.7s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .22s; }
.delay-3 { animation-delay: .34s; }
.delay-4 { animation-delay: .46s; }
.float-anim { animation: float 6s ease-in-out infinite; }
.float-anim:nth-child(2) { animation-delay: -2s; }
.float-anim:nth-child(3) { animation-delay: -4s; }

/* ─── Scroll reveal ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── Misc helpers ───────────────────────────────────────── */
.text-success { color: var(--brand-secondary) !important; }
.text-brand   { color: var(--brand-primary) !important; }

.divider-wave {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1200px) {
  :root { --section-py: 5rem; }
}
@media (max-width: 992px) {
  :root { --section-py: 4rem; }
  .hero-section { padding-bottom: 5rem; }
  .hero-title   { font-size: 2.4rem; }
  .hero-stats   { gap: 1.75rem; }
  .hero-visual  { display: none; } /* Hide on tablet where layout breaks */
}
@media (max-width: 768px) {
  :root { --section-py: 3rem; }
  .hero-section { padding-top: calc(var(--header-h) + 2rem); }
  .hero-stats { gap: 1.25rem; }
  .hero-stat-num { font-size: 1.75rem; }
  .auth-card { padding: 1.75rem; }
  .contact-form-card { padding: 1.5rem; }
  .footer-main { padding: 3rem 0 2rem; }
  .stats-strip .col-6:not(:last-child) { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
}
@media (max-width: 576px) {
  .hero-badge { font-size: .68rem; }
  .hero-title { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ─── Logo ───────────────────────────────────────────────── */
.nav-logo {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
  /* Darken logo teal to match brand primary #006E5A */
  filter: brightness(0.78) saturate(1.1);
}
.footer-logo {
  height: 46px;
  width: auto;
  display: block;
  object-fit: contain;
  /* Invert to white for dark footer - only if logo has dark text */
  filter: brightness(0) invert(1);
  opacity: .85;
}
.footer-logo:hover { opacity: 1; }

/* ─── Cert Trust Strip ───────────────────────────────────── */
.cert-strip {
  background: var(--g-950);
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.cert-strip-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cert-strip-label {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  white-space: nowrap;
  flex-shrink: 0;
}
.cert-strip-divider {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}
.cert-strip-items {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cert-strip-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  letter-spacing: .03em;
  white-space: nowrap;
}
.cert-strip-item i { color: var(--y-400); font-size: .85rem; }
@media (max-width: 576px) {
  .cert-strip-label, .cert-strip-divider { display: none; }
  .cert-strip-items { gap: 1rem; }
  .cert-strip-item { font-size: .72rem; }
}

/* ─── Category product count label ───────────────────────── */
.cat-product-count {
  font-size: .75rem;
  color: var(--brand-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
}

/* ─── News Cards ─────────────────────────────────────────── */
.news-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  height: 100%;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}
.news-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--g-700), var(--g-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--trans);
}
.news-card:hover {
  border-color: rgba(0,171,141,.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(0,110,90,.1);
}
.news-card:hover::before { transform: scaleX(1); }
.news-card-date {
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: 4px;
}
.news-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .75rem;
  line-height: 1.5;
  color: var(--text-primary);
}
.news-card-summary {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ─── Subsidiary Cards ───────────────────────────────────── */
.subsidiary-card {
  text-align: center;
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.subsidiary-card .info-card-icon {
  width: 72px; height: 72px;
  border-radius: var(--radius-md);
  font-size: 1.9rem;
  margin: 0 auto 1.25rem;
}
.subsidiary-card h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .6rem;
  color: var(--text-primary);
}
.subsidiary-card p { flex: 1; }
.subsidiary-link-hint {
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand-secondary);
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: var(--trans);
}
a.subsidiary-card:hover .subsidiary-link-hint { color: var(--brand-primary); }
.subsidiary-logo {
  width: 40px; height: 40px;
  object-fit: contain;
}

/* ─── Job Cards (Careers page) ───────────────────────────── */
.job-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  height: 100%;
  transition: var(--trans);
  position: relative;
}
.job-card:hover {
  border-color: rgba(0,171,141,.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,110,90,.12);
}
.job-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.job-card-header .info-card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}
.job-meta {
  font-size: .75rem;
  font-weight: 600;
  color: var(--brand-secondary);
  letter-spacing: .04em;
  display: block;
  margin-top: 2px;
}

/* ─── Navbar mobile ──────────────────────────────────────── */
@media (max-width: 992px) {
  .navbar-collapse {
    background: rgba(255,255,255,.98);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: .5rem;
    box-shadow: var(--shadow-lg);
  }
  .navbar-nav .nav-link { padding: .65rem 1rem !important; }
  .navbar-nav .nav-link::after { display: none; }
  .navbar-actions { flex-wrap: wrap; padding: .5rem 1rem; }
}

/* ─── News Popup ─────────────────────────────────────────── */
.news-popup {
  position: fixed;
  top: calc(var(--header-h) + 1.25rem);
  right: 1.5rem;
  z-index: 900;
  width: 290px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,.14), 0 0 0 1px rgba(0,110,90,.12);
  overflow: hidden;
  animation: news-popup-in .35s cubic-bezier(.22,.68,0,1.2) both;
}
@keyframes news-popup-in {
  from { opacity: 0; transform: translateY(-12px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.news-popup.news-popup-hiding {
  animation: news-popup-out .3s ease forwards;
}
@keyframes news-popup-out {
  to { opacity: 0; transform: translateY(-10px) scale(.97); }
}
.news-popup-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1rem;
  background: var(--brand-primary);
  color: #fff;
}
.news-popup-icon { font-size: 1rem; line-height: 1; }
.news-popup-title { flex: 1; font-size: .8rem; font-weight: 600; letter-spacing: .04em; }
.news-popup-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.75);
  cursor: pointer;
  padding: 0;
  font-size: .85rem;
  line-height: 1;
  transition: color .15s;
}
.news-popup-close:hover { color: #fff; }
.news-popup-list {
  list-style: none;
  margin: 0;
  padding: .5rem 0;
  max-height: 260px;
  overflow-y: auto;
}
.news-popup-item {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding: .45rem 1rem;
  border-bottom: 1px solid var(--n-200);
  transition: background .15s;
}
.news-popup-item:last-child { border-bottom: none; }
.news-popup-item:hover { background: var(--g-50); }
.news-popup-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-secondary);
  margin-top: 1px;
}
.news-popup-text {
  flex: 1;
  font-size: .8rem;
  color: var(--text-primary);
  line-height: 1.45;
}
.news-popup-date {
  flex-shrink: 0;
  font-size: .72rem;
  color: var(--n-400);
  white-space: nowrap;
}
@media (max-width: 576px) {
  .news-popup { right: .75rem; width: calc(100vw - 1.5rem); max-width: 290px; }
}

/* Allow tooltips to overflow the popup card */
.news-popup { overflow: visible; }
.news-popup-list { overflow: visible; }

/* News item hover tooltip (summary) */
.news-popup-item {
  position: relative;
}
.news-popup-summary-tip {
  display: none;
  position: absolute;
  right: calc(100% + 10px);
  top: 0;
  width: 260px;
  background: var(--n-900);
  color: #fff;
  font-size: .78rem;
  line-height: 1.6;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 1200;
  pointer-events: none;
  white-space: normal;
}
.news-popup-summary-tip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 12px;
  border: 7px solid transparent;
  border-left-color: var(--n-900);
}
.news-popup-item:hover .news-popup-summary-tip { display: block; }

@media (max-width: 768px) {
  .news-popup { display: none; }
}
