:root {
  --primary-color: #0d47a1; /* Deep Blue from logo */
  --primary-light: #5472d3;
  --secondary-color: #d32f2f; /* Red from logo */
  --secondary-dark: #9a0007;

  /* WhatsApp Float */
  .whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: 0.3s;
  }

  .whatsapp-float:hover {
    background-color: #1ebc57;
    transform: scale(1.1);
    color: white;
  }
  --text-dark: #212121;
  --text-gray: #555555;
  --text-light: #ffffff;
  --bg-light: #f5f7fa;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --gradient-main: linear-gradient(135deg, #0d47a1, #1976d2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* --- Header --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.8rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all 0.3s ease;
}
.logo {
  height: 70px;
  width: 120px;
}
.logo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.logo a {
    display: block;
    height: 100%;
    width: 100%;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}
nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: 0.3s;
}
nav a:hover,
nav a.active {
  color: #0d47a1;
}

/* Specific styling for the desktop phone number button */
.desktop-contact a {
    border: 2px solid var(--secondary-color);
    border-radius: 15px;
    padding: 10px 20px;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.desktop-contact a::after {
    display: none;
}

.desktop-contact a:hover {
    background: var(--secondary-color);
    color: white;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: #0d47a1;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}
.mobile-contact-btn {
  display: none;
}


/* --- Hero --- */
.hero {
  height: 100vh;
  background:
    linear-gradient(135deg, rgba(13, 71, 161, 0.75), rgba(0, 0, 0, 0.7)),
    url("images/home-background.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 20px;
  margin-top: 0;
}

.hero-content {
  max-width: 900px;
  z-index: 2;
}
.hero-content h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.btn {
  background: linear-gradient(90deg, #0d47a1, #459cdd); /* Gradient Blue */
  border-radius: 50px; /* Pill Shape */
  border: none;
  box-shadow: 0 4px 15px rgba(13, 71, 161, 0.4); /* Soft Shadow */
  color: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  outline: none;
  padding: 12px 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-right: 15px;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 71, 161, 0.6);
  filter: brightness(1.1);
  color: white;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(13, 71, 161, 0.4);
}

/* Main button style provided by .btn - .btn-primary and .btn-outline removed as they were empty */

.btn-group {
  display: flex;
  justify-content: center;
  gap: 20px; /* Handles spacing between buttons */
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn-group .btn {
  margin-right: 0; /* Remove default margin as gap handles it */
}

@media (min-width: 768px) {
  .btn {
    font-size: 1.1rem; /* Slightly larger on desktop but not huge */
    padding: 14px 40px;
  }
}

/* --- Generic Section --- */
section {
  padding: 100px 5%;
  position: relative;
}
.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 60px;
  font-weight: 700;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  margin: 15px auto 0;
}

/* --- About --- */
.about {
  background: white;
  overflow: hidden;
}

.about-top-wrapper {
  display: flex;
  align-items: stretch;
  gap: 40px;
  margin-bottom: 50px;
}

.about-content {
  flex: 1;
} /* Equal width text */
.about-text p {
  margin-bottom: 20px;
  text-align: justify;
  color: var(--text-gray);
  line-height: 1.8;
}

.about-image {
  flex: 1; /* Equal width image */
  position: relative;
  display: flex;
  align-items: center;
}
.about-image img {
  width: 100%;
  height: 100%;
  max-height: 500px; /* Prevent excessive height */
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 20px 20px 0 rgba(13, 71, 161, 0.1);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.benefit-item {
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 15px;
  border-left: 4px solid var(--secondary-color);
  transition: 0.3s;
}
.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.benefit-icon {
  font-size: 2rem;
  color: var(--primary-color);
  min-width: 40px;
}
.benefit-item h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--text-dark);
}
.benefit-item p {
  font-size: 0.9rem;
  color: #777;
  margin: 0;
}

/* --- Services --- */
.services {
  background: linear-gradient(180deg, #f0f4fa 0%, #ffffff 100%);
}
.service-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}
.service-btn {
  padding: 12px 25px;
  border: none;
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border-radius: 30px;
  font-weight: 600;
  color: var(--text-gray);
  cursor: pointer;
  transition: 0.3s;
}
.service-btn:hover,
.service-btn.active {
  background: var(--gradient-main);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(13, 71, 161, 0.3);
}

.services-display-container {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: none;
  overflow: hidden;
}
.services-display-container.active {
  display: block;
}
.services-display-container h3 {
  text-align: center;
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 30px;
}
.close-services {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 1.5rem;
  color: #ccc;
  cursor: pointer;
  transition: 0.3s;
}
.close-services:hover {
  color: var(--secondary-color);
  transform: rotate(90deg);
}

.sub-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 10px 10px 20px 10px; /* Extra bottom padding for hover effects */
}

.sub-service-card {
  background: white;
  padding: 20px;
  border-radius: 15px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #eee;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.sub-service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--secondary-color);
  transition: 0.3s;
}

.sub-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.sub-service-card:hover::before {
  width: 100%;
  opacity: 0.1;
}

.sub-service-card i {
  font-size: 1.5rem;
  color: var(--secondary-color);
  background: rgba(211, 47, 47, 0.1);
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: 0.3s;
}

.sub-service-card:hover i {
  background: var(--secondary-color);
  color: white;
  transform: rotate(360deg);
}

.sub-service-card h4 {
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

/* Alternating Theme */
.sub-service-card:nth-child(even)::before {
  background: var(--primary-color);
}
.sub-service-card:nth-child(even) i {
  color: var(--primary-color);
  background: rgba(13, 71, 161, 0.1);
}
.sub-service-card:nth-child(even):hover i {
  background: var(--primary-color);
  color: white;
}

/* --- Certification --- */
.certification {
  background: white;
}
.carousel-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 30px 10px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  /* Center grid items if they don't fill the row */
  justify-content: center;
}

.cert-card {
  background: transparent; /* Transparent bg for cleaner look */
  padding: 20px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: none;
  box-shadow: none; /* Removed card shadow to focus on logo circle */
}

/* Circular Logo Wrapper */
.cert-img-wrapper {
  width: 140px;
  height: 140px;
  background: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* Soft shadow like reference */
  border: 5px solid white; /* Inner white border */
  outline: 1px solid #eee; /* Outer subtle border */
  transition: 0.3s;
  overflow: hidden;
  padding: 15px; /* Padding inside circle */
}

.cert-card:hover .cert-img-wrapper {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  outline-color: var(--secondary-color);
}

.cert-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Typography Under Logo */
.cert-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary-color); /* Brand Color */
  font-weight: 700;
}
.cert-card p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
  max-width: 250px; /* Limit text width for readability */
}

/* --- What We Do --- */
.what-we-do {
  background: #f8f9fa;
}
.do-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.do-card {
  background: white;
  padding: 30px 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
  border-bottom: 4px solid transparent;
}

.do-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-bottom-color: var(--secondary-color);
}

.do-icon {
  width: 70px;
  height: 70px;
  background: rgba(13, 71, 161, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  transition: 0.3s;
}

.do-card:hover .do-icon {
  background: var(--primary-color);
  color: white;
  transform: rotateY(180deg);
}

.do-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.do-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

/* --- FAQ --- */
.faq {
  background: #f9fafe;
}
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: white;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}
.faq-question {
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dark);
  transition: 0.3s;
}
.faq-question:hover {
  color: var(--primary-color);
}
.faq-toggle {
  transition: 0.3s;
  font-size: 1rem;
}
.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--secondary-color);
}
.faq-answer {
  height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: 0.3s;
  color: #666;
}
.faq-item.active .faq-answer {
  padding-bottom: 25px;
}

/* --- Contact --- */
/* --- Contact --- */
/* --- Contact --- */
.contact {
  background: white;
}

.contact-wrapper {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

/* Left: Form */
.contact-form-wrapper {
  flex: 1;
  min-width: 350px;
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  font-size: 1rem;
  color: var(--text-dark);
  background: white;
  transition: 0.3s;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
  outline: none;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.btn-block {
  display: flex;
  width: 100%;
  margin-top: 10px;
  margin-right: 0;
}

/* Right: Info + Map */
.contact-info-wrapper {
  flex: 1;
  min-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info-wrapper h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.contact-details {
  list-style: none;
  padding: 0;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.6;
}

.contact-details li i {
  color: #0d47a1;
  font-size: 1.2rem;
  margin-top: 4px;
  min-width: 20px;
}

.map-container {
  width: 100%;
  height: 350px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 5px solid white;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Popup */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  text-align: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}
.popup.show {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}
.overlay.show {
  opacity: 1;
  pointer-events: all;
}

/* --- Footer --- */
/* --- Footer --- */
footer {
  background: #121212;
  color: #b0b0b0;
  padding: 60px 5% 20px;
  font-size: 0.95rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 50px;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-section {
  flex: 1;
  min-width: 220px;
}

.footer-brand {
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-section h3 {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 25px;
}

.footer-section p {
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #b0b0b0;
  text-decoration: none;
  transition: 0.3s;
  display: block;
}

.footer-links a:hover {
  color: var(--primary-light);
  transform: translateX(5px);
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-list li i {
  color: #0d47a1; /* Bright Blue for icons */
  font-size: 1.1rem;
  margin-top: 4px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: #0d47a1; /* Blue background */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: 0.3s;
  font-size: 1.1rem;
}

.social-links a:hover {
  background: white;
  color: #0d47a1;
  transform: translateY(-3px);
}

.copyright {
  border-top: 1px solid #333;
  padding-top: 25px;
  text-align: center;
  font-size: 0.9rem;
  color: #777;
}

/* --- Footer Alignment Fixes --- */
/* Alignment reset to default left */

/* --- Responsive --- */
@media (max-width: 1024px) {
  .logo img {
    height: 72px;
  }
}

/* Primary Breakpoint for Tablet/iPad Pro (1100px) */
@media (max-width: 1100px) {
  /* Global Adjustments */
  section {
    padding: 30px 5%;
  }
  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  /* Navigation - Switch to Hamburger earlier */
  .menu-toggle {
    display: block;
  }

  .mobile-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: auto;
    margin-right: 15px;
    transition: 0.3s;
  }
  .mobile-contact-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
  }
  .desktop-contact {
    display: none;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 999;
  }
  nav ul {
    display: none;
    flex-direction: column;
    background: white;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
  }
  header.active nav ul {
    display: flex;
  }

  /* Hero Section */
  .hero {
    height: auto;
    min-height: 70vh;
    padding-top: 100px; /* Reduced padding */
    padding-bottom: 50px;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }

  /* About Us - Stack Layout */
  .about-top-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .about-image {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
  }
  .about-image img {
    width: 80%;
    max-width: 600px;
    height: auto;
  }

  /* Benefits Grid - 2 Columns */
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact Section - Stack Layout */
  .contact-wrapper {
    gap: 40px;
    flex-direction: column-reverse;
  } /* Stack: Info on top (if not reversed), checks HTML order */
  .contact-form-wrapper,
  .contact-info-wrapper {
    min-width: 100%;
    padding: 30px;
  }
  /* Note: original was flex-direction: column-reverse on 800px. 
       If HTML is Form then Info/Map, column-reverse puts Info/Map on Top? 
       Let's check HTML. HTML is Form first (left), Info/Map second (right). 
       column-reverse puts item 2 on top. Correct. */

  /* Footer - Stack Layout */
  .footer-content {
    gap: 30px;
  }
  .footer-section {
    flex: 1 1 45%;
  } /* Two columns on tablet */

  .footer-section:last-child {
    text-align: left;
    align-items: flex-start;
  }
  .footer-section:last-child .social-links {
    justify-content: flex-start;
  }
  .footer-section:last-child p {
    margin-left: 0;
  }

  /* Certification Grid - 2 Columns */
  .carousel-container {
    grid-template-columns: repeat(2, 1fr);
  }

  /* What We Do Grid - 2 Columns */
  .do-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Diagnostics Grid - 2 Columns or 3 depending on preference, user said 2 for tablet */
  .diag-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Mobile Specific (Phone) */
@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  /* Services - 1 Column */
  .sub-services-grid {
    grid-template-columns: 1fr;
  }

  /* Footer - 1 Column */
  .footer-section {
    flex: 1 1 100%;
  }

  .contact-form-wrapper,
  .contact-info-wrapper {
    padding: 20px;
  }

  .carousel-container {
    gap: 15px;
    padding: 20px 0;
  }

  /* What We Do Grid - 1 Column */
  .do-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Diagnostics Grid - 1 Column */
  .diag-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* --- Diagnostics Services --- */
.diagnostics-services {
  background: #f0f4fa;
  padding-top: 50px;
  padding-bottom: 80px;
}

.diag-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.diag-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Soft shadow */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
}

.diag-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-light);
}

.diag-img {
  width: 100%;
  height: 100%;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
}

.diag-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure image covers area */
  transition: transform 0.5s ease;
}

.diag-card:hover .diag-img img {
  transform: scale(1.05); /* Subtle zoom on hover */
}

.diag-info {
  padding: 20px 20px 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.diag-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid #f0f0f0;
  overflow: hidden;
}

.diag-logo img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.diag-info h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin: 0;
  line-height: 1.3;
  font-weight: 700;
}

.diag-desc {
  padding: 0 20px 25px;
  font-size: 0.9rem;
  color: #666;
  margin-top: 5px;
  line-height: 1.6;
}

/* --- Diagnostics Services Responsive Fix --- */
@media (max-width: 1100px) {
  .diag-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .diag-grid {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
    gap: 15px; /* Ensure vertical gap */
  }
  .btn-group .btn {
    width: 100%;
    margin-right: 0;
  }
}

/* --- Service List Layout (Haematology) --- */
.sub-services-grid.list-layout {
  display: block; /* Override grid */
  text-align: center;
}

.custom-service-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  column-count: 2; /* 2 Columns for 18 items */
  column-gap: 20px;
  text-align: left;
}

.custom-service-list li {
  background: #fff;
  margin-bottom: 8px; /* Reduced from 10px */
  padding: 6px 15px 6px 30px; /* Reduced padding */
  border-radius: 50px;
  border: 1px solid #e0e0e0;
  font-size: 0.9rem; /* Reduced font size from 0.95rem */
  color: #444;
  font-weight: 500;
  break-inside: avoid;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  position: relative;
  cursor: default;
}

/* Custom Colored Point */
.custom-service-list li::before {
  content: "";
  position: absolute;
  left: 12px; /* Adjusted left position */
  top: 50%;
  transform: translateY(-50%);
  width: 6px; /* Slightly smaller dot */
  height: 6px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  transition: 0.3s;
}

.custom-service-list li:hover {
  background: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(13, 71, 161, 0.15);
  transform: translateX(5px);
  color: var(--primary-color);
}

.custom-service-list li:hover::before {
  background-color: var(--primary-color); /* Blue dot on hover */
  transform: translateY(-50%) scale(1.2);
}

@media (max-width: 768px) {
  .custom-service-list {
    column-count: 1; /* 1 Column on mobile */
  }
  .custom-service-list li {
    /* Keep alignment consistent */
  }
  .custom-service-list li:hover {
    transform: translateX(5px);
  }
}
