/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #ffffff;
  color: #333333;
  line-height: 1.6;
}

.lab-logo{
    max-width: 40px;
    position: absolute;
    margin: 7% 0 ;
    
}

/* Header */
header {
  background-color: #0F5B7F;
  color: white;
  padding: 20px;
  text-align: center;
  animation: slideDown 1s ease-out;
}

nav a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* Main */
main {
  padding: 40px 20px;
  text-align: center;
  background-color: #ffffff;
}

/* .lab-image {
  width: 30%;
  max-width: 400px;
  height: auto;
  margin: 20px auto;
  display: block;
  border-radius: 10px;
  background-color: #F2F9FC;
  border: 4px solid #8DD1FF;
  animation: fadeIn 1s ease-in-out;
} */
.lab-image,
.responsive-image {
  max-width: 18%;
  height: auto;
  display: block;
  margin: 20px auto;
}

h2 {
  color: #5A7342;
  margin-top: 20px;
}

a {
  color: #0F5B7F;
}

a:hover {
  color: #5A7342;
}

/* Contact Form */
.contact-form {
  max-width: 500px;
  margin: auto;
  text-align: left;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(15, 91, 127, 0.1);
}

.contact-form label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.contact-form button {
  margin-top: 20px;
  background-color: #5A7342;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #4a5e37;
}

/* Footer */
footer {
  background-color: #0F5B7F;
  color: white;
  text-align: center;
  padding: 10px;
  margin-top: auto;
}

.whatsapp-float {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 50px;
  /* top: 40px; */
  right: 40px;
  z-index: 100;
  cursor: pointer;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.whatsapp-float img:hover {
  transform: scale(1.1);
}

.contactSpan {
  padding-left: 10px
}

/* Base header styling */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Title */
.site-title {
  font-size: 1.8rem;
  color: white;
}

.nav-menu a {
  color: white;
  font-weight: bold;
  text-decoration: none;
}

/* Toggle button hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

/* -------- About Us layout -------- */
.about-section {
  display: flex;
  align-items: center; /* vertically center both columns */
  justify-content: center;
  max-width: 1200px;
  margin: 40px auto;
  gap: 40px;
  padding: 0 20px;
}

.about-text {
  flex: 2;
  line-height: 1.6;
  text-align: left;
}

.about-text h2 {
  color: #5A7342;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
}

.ceo-signoff {
  margin-top: 30px;
  font-style: italic;
}

.address-block {
  margin-top: 30px;
  background: #F2F9FC;
  padding: 15px;
  border-left: 4px solid #0F5B7F;
}

.address-block h3 {
  margin-bottom: 10px;
}

.about-image {
  flex: 1;
  display: flex;
  align-items: center; /* vertically center within right column */
  justify-content: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.doc-viewer-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

.img-container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

img, object, iframe {
  max-width: 100%;
  height: auto;
  /* border: 1px solid #ddd; */
  border-radius: 6px;
}

.download-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #5A7342;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.download-btn:hover {
  background-color: #4a5e37;
}



/* Media query for mobile */
@media (max-width: 768px) {
  .nav-right {
    position: absolute;
    top: 140px;
    right: 0;
    background-color: #0F5B7F;
    flex-direction: column;
    width: 50%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-right.open {
    max-height: 200px; /* adjust to fit number of links */
  }
  .nav-toggle {
    display: block;
  }
  .nav-menu {
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #0F5B7F;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-menu.open {
    max-height: 200px; /* enough to show your three links */
  }
  .about-section {
    flex-direction: column-reverse;
    gap: 20px;
  }
  .about-image {
    margin: 0 auto;
  }
  .lab-logo{
    max-width: 40px;
    position: absolute;
    margin: 7% 0 ;
    
  }
}




/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.slide-in {
  animation: slideDown 1s ease-in-out;
}

.fade-in {
  animation: fadeIn 1.5s ease;
}

/* Responsive */
@media (max-width: 600px) {
  nav a {
    display: block;
    margin: 10px 0;
  }

  .lab-image {
    width: 30%;
  }

  .contact-form {
    width: 90%;
  }
}
