body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f7f7f7;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}

header h1 {
  margin-bottom: 0.5rem;
}


header {
  background: linear-gradient(to right, #004080, #0077cc);
  color: white;
  padding: 3rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.lab-title {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.lab-description {
  font-size: 1.2rem;
  max-width: 700px;
  margin: auto;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.lab-technician {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  opacity: 0.9;
}

header p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}


.logo-header {
  height: 325px;
  width: 325px;
  border-radius: 15px;
}


.hero-img {
  max-width: 100%;
  border-radius: 12px;
  margin-top: 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.test-section, .gallery-section {
  padding: 3rem 1rem;
  text-align: center;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.test-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.test-card:hover {
  transform: translateY(-5px);
}

.test-card img {
  max-width: 60px;
  margin-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-grid img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}


.gallery-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.gallery-row img {
  width: 100%;
  max-width: 400px;         /* Reduce the max size */
  height: 250px;            /* Set consistent height */
  object-fit: cover;        /* Maintain aspect ratio, crop if needed */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s;
}

.gallery-row img:hover {
  transform: scale(1.03);
}


.gallery-row-2 {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.gallery-row-2 img {
  width: 100%;
  max-width: 400px;        /* Keep the image from stretching too wide */
  height: auto;            /* Automatically adjust height */
  object-fit: contain;     /* Ensure full image is visible */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s;
}


.gallery-row-2 img:hover {
  transform: scale(1.03);
}



footer {
  background-color: #004080;
  color: white;
  text-align: center;
  padding: 1rem 0;
  margin-top: 3rem;
}

button {
  padding: 0.7rem 1.5rem;
  background-color: #004080;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  background-color: #0066cc;
}


.carousel {
  width: 90%;
  max-width: 800px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

.carousel-images {
  display: flex;
  gap: 1rem; /* spacing between images */
  transition: transform 0.5s ease-in-out;
  padding: 0 1rem;
}

.carousel-images img {
  width: calc(100% - 4rem);  /* slightly less than full to show next */
  max-width: 700px;
  flex-shrink: 0;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}



.test-card i {
  font-size: 3rem;
  color: #004080;
  margin-bottom: 1rem;
}
