:root {
  --primary-color: #2563EB;
  /* Lab Blue */
  --secondary-color: #06B6D4;
  /* Cyan Accent */
  --dark-color: #1e293b;
  --light-color: #f8fafc;
  --text-color: #334155;
  --font-main: 'Inter', sans-serif;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background-color: #fff;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  background: white;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

/* Partner Banner */
.partner-banner {
  background: #0f172a;
  color: white;
  font-size: 0.85rem;
  padding: 8px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1040;
  text-align: center;
}

.partner-banner a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
}

.partner-banner a:hover {
  text-decoration: underline;
  color: #fff;
}

/* Adjust navbar when banner is present */
body.has-promo .navbar.fixed-top {
  top: 36px;
  /* Approx banner height */
}

body.has-promo {
  padding-top: 36px;
  /* Push body content down slightly more if needed, mostly for offsets */
}

.navbar-brand {
  font-weight: 800;
  color: var(--primary-color) !important;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
}

.nav-link {
  font-weight: 500;
  color: var(--dark-color) !important;
  margin-left: 1.2rem;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 50px;
  padding: 0.7rem 1.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 50px;
  padding: 0.7rem 1.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Hero */
.hero-section {
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), url('../images/hero_section.jpg');
  background-size: cover;
  background-position: center bottom;
  padding: 140px 0 100px;
  position: relative;
}
.hero-section-bg {
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), url('../images/hero_section.jpg');
}
.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Common Section Styles */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 3px;
}

/* Cards */
.service-card {
  border: none;
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  /* Force full height for flexbox alignment */
  display: flex;
  /* Flex container to push footer/link to bottom if needed */
  flex-direction: column;
}

.service-card .text-muted {
  flex-grow: 1;
  /* Pushes the 'Read More' link to bottom if content varies */
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15);
}

.service-card img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.icon-box {
  width: 70px;
  height: 70px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}

.service-card:hover .icon-box {
  background: var(--primary-color);
  color: white;
}

/* About Page Specifics */
.team-member {
  text-align: center;
  margin-bottom: 30px;
}

.team-member img {
  width: 100%;
  height: 350px;
  /* Fixed height for portrait orientation */
  border-radius: 16px;
  /* Soft corners but rectangular */
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Page Specifics */
.contact-info-box {
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Footer */
footer {
  background: var(--dark-color);
  color: #f1f5f9;
  /* Off-white for better readability */
  padding: 5rem 0 2rem;
  font-size: 0.95rem;
}

footer h5 {
  color: #fff;
  font-weight: 600;
}

footer a {
  color: #cbd5e1;
  /* Light grey-blue for links */
  transition: color 0.3s;
  text-decoration: none;
}

footer .text-muted {
  color: #94a3b8 !important;
  /* Lighter muted text for dark background */
}

footer a:hover {
  color: #fff;
  padding-left: 5px;
}

.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}