/*
Theme Name: Nantong Yenjyoh
Theme URI: http://localhost/nantongyenjyoh
Author: Nantong Yenjyoh Clinical Research Team
Author URI: http://localhost/nantongyenjyoh
Description: Professional, responsive bilingual (Chinese / English) CRO website theme for Nantong Yenjyoh.
Version: 1.3.0
License: GNU General Public License v2 or later
Text Domain: nantong-cro
*/

:root {
  --primary: #0a3d62;
  --primary-dark: #072740;
  --primary-light: #0c548a;
  --secondary: #00a8cc;
  --secondary-dark: #007d99;
  --secondary-light: #e0f4f8;
  --accent: #2ecc71;
  --accent-gold: #f39c12;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-alt: #f1f5f9;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", Roboto, Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

/* Primary Button - Explicit White Text by Default */
.btn-primary,
a.btn-primary,
.btn-contact-footer,
a.btn-contact-footer,
.btn-contact-footer span {
  background: linear-gradient(135deg, var(--secondary) 0%, #0088a8 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0,168,204,0.4);
  text-decoration: none !important;
}

.btn-primary:visited,
a.btn-primary:visited,
.btn-contact-footer:visited,
a.btn-contact-footer:visited {
  color: #ffffff !important;
}

.btn-primary:hover,
a.btn-primary:hover,
.btn-contact-footer:hover,
a.btn-contact-footer:hover {
  background: linear-gradient(135deg, #0097b8 0%, #007794 100%);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,168,204,0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
}

.btn-secondary:visited {
  color: #ffffff !important;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Top bar (Desktop & Tablet) */
.topbar {
  background: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.topbar-item a {
  color: #e2e8f0;
}
.topbar-item a:hover {
  color: var(--secondary-light);
}

/* Language Switcher Pill */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  padding: 2px;
  cursor: pointer;
  user-select: none;
}

.lang-btn {
  background: transparent;
  border: none;
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn.active {
  background: var(--bg-white);
  color: var(--primary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.lang-btn:hover:not(.active) {
  color: #ffffff;
}

/* Hide any English language switch button across the entire site */
[data-lang="en"],
.lang-btn[data-lang="en"] {
  display: none !important;
}

/* Main Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 10px rgba(0,0,0,0.06);
  transition: var(--transition);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0,168,204,0.3);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--secondary-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Desktop Navigation Menu (4 Tabs) */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.85rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--secondary-dark);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff !important;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(10,61,98,0.25);
  display: inline-block;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(10,61,98,0.35);
  color: #ffffff !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-lang-switcher {
  display: none;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
}
.mobile-lang-switcher .lang-btn {
  color: var(--text-main);
  font-size: 0.74rem;
  padding: 3px 7px;
}
.mobile-lang-switcher .lang-btn.active {
  background: var(--primary);
  color: white;
}

.mobile-toggle {
  display: none;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0.45rem 0.65rem;
  font-size: 1.35rem;
  color: var(--primary);
  line-height: 1;
  transition: var(--transition);
}
.mobile-toggle:hover {
  background: var(--secondary-light);
  color: var(--secondary-dark);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #061c30 0%, #0a3d62 50%, #0d5487 100%);
  color: white;
  padding: 5rem 0 4.5rem;
  overflow: hidden;
  scroll-margin-top: 72px;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(0, 168, 204, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(46, 204, 113, 0.15) 0%, transparent 40%),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 168, 204, 0.2);
  border: 1px solid rgba(0, 168, 204, 0.4);
  color: #7ee8fa;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 1.12rem;
  line-height: 1.75;
  color: #cbd5e1;
  margin-bottom: 2.25rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #67e8f9;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Hero High-Res Ecosystem Visual Card (Document Image 1) */
.hero-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(0, 168, 204, 0.35);
  background: #072740;
  transition: var(--transition);
}

.hero-image-card:hover {
  border-color: rgba(0, 168, 204, 0.65);
  transform: translateY(-3px);
  box-shadow: 0 25px 50px rgba(0, 168, 204, 0.25);
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-image-card:hover .hero-img {
  transform: scale(1.02);
}

.hero-image-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(7, 39, 64, 0.88);
  backdrop-filter: blur(8px);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.18);
}

.hero-overlay-tag {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: white;
}

.hero-card-tag {
  background: rgba(46, 204, 113, 0.25);
  color: #a7f3d0;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}

/* Sections General */
.section {
  padding: 5.5rem 0;
  scroll-margin-top: 72px;
}

.section-alt {
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem;
}

.section-badge {
  display: inline-block;
  background: var(--secondary-light);
  color: var(--secondary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* About Us Layout */
.about-overview-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
}

.about-overview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.about-overview-title {
  font-size: 1.55rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-overview-text {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Vision & Mission Cards */
.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.vm-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.vm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.vm-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.vm-card.vision .vm-icon-box {
  background: rgba(10, 61, 98, 0.1);
  color: var(--primary);
}

.vm-card.mission .vm-icon-box {
  background: rgba(0, 168, 204, 0.12);
  color: var(--secondary-dark);
}

.vm-title {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}

.vm-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.vm-pillars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.vm-pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-main);
}

.vm-pillar-item .check-icon {
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Label Row for Approach Boxes */
.approach-label-row {
  text-align: center;
  margin: 1.5rem 0 2rem;
}

.approach-label-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(10, 61, 98, 0.07);
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.55rem 1.6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(10, 61, 98, 0.16);
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(10, 61, 98, 0.05);
}

/* Grid Cards for Scientific Approach, Commitment, Ethics */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.approach-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.approach-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.approach-number {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.approach-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.approach-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Quality Framework */
.quality-framework-box {
  background: linear-gradient(135deg, #092c48 0%, #0d4670 100%);
  color: white;
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin-bottom: 3.5rem;
}

.quality-header {
  margin-bottom: 2rem;
}

.quality-title {
  color: white;
  font-size: 1.75rem;
}

.quality-desc {
  color: #cbd5e1;
  font-size: 1.02rem;
  max-width: 750px;
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.quality-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: var(--transition);
}

.quality-item:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(0, 168, 204, 0.4);
}

.quality-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(0, 168, 204, 0.25);
  color: #7ee8fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.quality-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
}

/* Collaboration Network */
.network-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.network-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.network-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.network-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--secondary-light);
  color: var(--secondary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.network-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.35;
}

/* Solutions Section with Image Cards */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.solution-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.solution-card-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: #0f172a;
}

.solution-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.solution-card:hover .solution-card-img {
  transform: scale(1.05);
}

.solution-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.solution-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.solution-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(0, 168, 204, 0.25);
  flex-shrink: 0;
}

.solution-badge-code {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 0.05em;
}

.solution-title {
  font-size: 1.35rem;
  margin: 0;
}

.solution-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.solution-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-light);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 500;
  transition: var(--transition);
}

.solution-item:hover {
  background: var(--secondary-light);
  color: var(--secondary-dark);
  transform: translateX(4px);
}

.solution-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  flex-shrink: 0;
}

/* Expertise Section */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.expertise-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.expertise-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.expertise-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--secondary-light);
  color: var(--secondary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.15rem;
  transition: var(--transition);
}

.expertise-card:hover .expertise-icon {
  background: var(--secondary);
  color: white;
  transform: rotate(5deg) scale(1.05);
}

.expertise-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.expertise-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Regional Clinical Research */
.regional-card-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.region-box {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.region-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.region-box-header {
  padding: 1.75rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.region-box.south-asia .region-box-header {
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.08) 0%, rgba(243, 156, 18, 0.04) 100%);
  border-top: 4px solid #e67e22;
}

.region-box.east-asia .region-box-header {
  background: linear-gradient(135deg, rgba(10, 61, 98, 0.08) 0%, rgba(0, 168, 204, 0.04) 100%);
  border-top: 4px solid var(--primary);
}

.region-box.southeast-asia .region-box-header {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.08) 0%, rgba(39, 174, 96, 0.04) 100%);
  border-top: 4px solid var(--accent);
}

.region-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  display: inline-block;
}

.region-box.south-asia .region-badge { color: #d35400; }
.region-box.east-asia .region-badge { color: var(--primary); }
.region-box.southeast-asia .region-badge { color: #27ae60; }

.region-name {
  font-size: 1.45rem;
  margin: 0;
}

.region-box-body {
  padding: 1.75rem;
  flex: 1;
}

.country-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.country-tag {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.country-tag:hover {
  background: var(--secondary-light);
  border-color: var(--secondary);
  color: var(--secondary-dark);
}

/* Process Section & Infographic (Document Image 6) */
.process-visual-card {
  max-width: 860px;
  margin: 0 auto 3.5rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: white;
  border: 1px solid var(--border-color);
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  position: relative;
}

.process-visual-banner {
  position: relative;
  z-index: 2;
  margin-bottom: -32px;
  text-align: center;
  transition: var(--transition);
}

.process-visual-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 auto;
  line-height: 1.3;
}

.label-text-cyan {
  color: #0284c7;
}

.label-badge-vs {
  color: var(--primary);
  font-size: 0.82em;
  font-weight: 700;
  padding: 0.12rem 0.65rem;
  background: #f1f5f9;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  display: inline-block;
  margin: 0 0.25rem;
}

.label-text-blue {
  color: #1d4ed8;
}

.process-img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .process-visual-banner {
    margin-bottom: 0.5rem;
  }
  .process-visual-label {
    font-size: 1.25rem;
    gap: 0.35rem;
  }
  .label-badge-vs {
    font-size: 0.78em;
    padding: 0.1rem 0.45rem;
  }
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 45px;
  left: 5%;
  right: 5%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  z-index: 1;
}

.process-step {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-step-num {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--secondary);
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: var(--transition);
}

.process-step:hover .process-step-num {
  background: var(--secondary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0, 168, 204, 0.4);
}

.process-step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.35;
}

/* Contact Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: stretch;
}

.contact-card-info {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  height: 100%;
}

.contact-card-info::after {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(0, 168, 204, 0.15);
  bottom: -60px;
  right: -60px;
  pointer-events: none;
}

.contact-info-title {
  color: white;
  font-size: 1.85rem;
  margin-bottom: 1rem;
}

.contact-info-desc {
  color: #cbd5e1;
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 0;
}

/* Trust Badges in Left Contact Card */
.contact-trust-badges {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 1.75rem 0;
  padding: 1.35rem 1.45rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: #e2e8f0;
  font-weight: 500;
}

.trust-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ee8fa;
  box-shadow: 0 0 10px #7ee8fa;
  flex-shrink: 0;
}

/* Contact Email Card on Left Panel */
.contact-email-card {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.45rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-top: auto;
  transition: var(--transition);
}

.contact-email-card:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #7ee8fa;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.email-card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 168, 204, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #7ee8fa;
  flex-shrink: 0;
  border: 1px solid rgba(0, 168, 204, 0.45);
}

.email-card-content {
  flex: 1;
  min-width: 0;
}

.email-card-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7ee8fa;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.email-card-link {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff !important;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.email-card-link:hover {
  color: #7ee8fa !important;
  text-decoration: underline;
}

/* Contact Form */
.contact-form-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  height: 100%;
}

/* Beautiful Live Submission Result Card */
.inquiry-result-card {
  animation: fadeInResult 0.35s ease forwards;
  display: flex;
  flex-direction: column;
  height: 100%;
}

@keyframes fadeInResult {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-card-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.1) 0%, rgba(46, 204, 113, 0.04) 100%);
  border: 1px solid rgba(39, 174, 96, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.result-check-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #27ae60;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.result-banner-text {
  flex: 1;
}

.result-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #1e3a29;
}

.result-subtitle {
  font-size: 0.88rem;
  color: #4b6b55;
  margin-top: 0.25rem;
}

.target-email-highlight {
  color: var(--primary);
  font-weight: 700;
}

.result-meta-bar {
  display: flex;
  justify-content: space-between;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.result-meta-bar .meta-val {
  color: var(--text-main);
  font-weight: 700;
}

.result-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.result-field-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
}

.result-field-full {
  grid-column: 1 / -1;
}

.field-item-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.field-item-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-dark);
  word-break: break-word;
}

.field-title-highlight {
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 700;
}

.desc-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.desc-char-badge {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Long text handling container with custom sleek scrollbar */
.result-desc-scrollbox {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #1e293b;
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.03);
}

.result-desc-scrollbox::-webkit-scrollbar {
  width: 6px;
}
.result-desc-scrollbox::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.result-desc-scrollbox::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.result-desc-scrollbox::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

.result-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.result-security-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  flex: 1;
}

.contact-form-card form {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.contact-form-card form button[type="submit"] {
  margin-top: auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--bg-white);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.15);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-alert {
  display: none;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-alert.success {
  display: block;
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-title {
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.footer-col-title {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  color: #94a3b8;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: white;
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}

/* Floating Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--secondary);
  transform: translateY(-3px);
  color: white;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS & COMPLETE MOBILE NAVIGATION
   ========================================================================== */

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-image-card {
    max-width: 600px;
    margin: 0 auto;
  }
  .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .quality-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .network-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .process-timeline::before {
    display: none;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 868px) {
  /* Complete removal of the separate top banner on mobile devices */
  .topbar {
    display: none !important;
  }

  /* Make Navbar container clean & responsive */
  .navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  }

  .navbar-inner {
    height: 60px !important;
    min-height: 60px !important;
    padding: 0 0.85rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    position: relative !important;
  }

  /* Brand Logo on mobile: ultra-clean single line, no clipping or overflowing */
  .brand-logo {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    max-width: calc(100% - 130px) !important;
    overflow: hidden !important;
  }

  .brand-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }

  .brand-text {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .brand-title {
    font-size: 1.02rem !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }

  /* Hide the long subtitle on mobile so it NEVER wraps or creates multi-line header bugs */
  .brand-subtitle {
    display: none !important;
  }

  /* Right action area: compact language switcher + hamburger */
  .nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    flex-shrink: 0 !important;
  }

  .mobile-lang-switcher {
    display: inline-flex !important;
    padding: 2px !important;
    background: #f1f5f9 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-full) !important;
  }

  .mobile-lang-switcher .lang-btn {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    padding: 3px 6px !important;
    border-radius: var(--radius-full) !important;
    line-height: 1.2 !important;
  }

  .mobile-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 34px !important;
    background: #f8fafc !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
    font-size: 1.2rem !important;
    color: var(--primary) !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 !important;
  }

  /* Dropdown Navigation Menu: anchored directly beneath the 60px navbar */
  .nav-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0.5rem 1.25rem 1.25rem !important;
    box-shadow: 0 16px 30px rgba(0,0,0,0.12) !important;
    border-top: 1px solid var(--border-color) !important;
    border-bottom: 3px solid var(--primary) !important;
    gap: 0 !important;
    display: none;
    z-index: 1001 !important;
  }

  .nav-menu.open {
    display: flex !important;
    animation: menuSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .nav-menu li {
    width: 100% !important;
    list-style: none !important;
  }

  .nav-menu .nav-link {
    display: block !important;
    width: 100% !important;
    padding: 0.85rem 0.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--primary-dark) !important;
    border-bottom: 1px solid var(--border-light) !important;
    text-decoration: none !important;
  }

  .nav-menu .nav-link::after {
    display: none !important;
  }

  .nav-menu .nav-cta {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 0.85rem !important;
    padding: 0.75rem !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }
  .regional-card-wrapper {
    grid-template-columns: 1fr;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .vision-mission-grid {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.15rem;
  }
  .hero-description {
    font-size: 1rem;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .cards-grid-3, .quality-grid, .network-grid, .expertise-grid {
    grid-template-columns: 1fr;
  }
  .process-timeline {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .solution-card-img-wrap {
    height: 180px;
  }
  .result-details-grid {
    grid-template-columns: 1fr;
  }
  .result-card-banner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .result-meta-bar {
    flex-direction: column;
    gap: 0.35rem;
  }
  .contact-email-card {
    flex-direction: column;
    text-align: center;
  }
  .result-card-actions {
    flex-direction: column;
    text-align: center;
  }
}
