/* Global Variables */
:root {
  --primary-green: #378b59;
  --primary-green-hover: #2d734a;
  --dark-blue: #16243d;
  --text-dark: #333333;
  --text-light: #777777;
  --bg-gray: #f8f9fa;
  --white: #ffffff;
  --border-color: #e0e0e0;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--dark-blue);
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-green);
  color: var(--white);
  border: 2px solid var(--primary-green);
}

.btn-primary:hover {
  background-color: var(--primary-green-hover);
  border-color: var(--primary-green-hover);
}

.btn-outline {
  background-color: var(--white);
  color: var(--dark-blue);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--dark-blue);
}

/* Top Bar */
.top-bar {
  background-color: var(--dark-blue);
  color: var(--white);
  font-size: 12px;
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left span {
  margin-right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-right a {
  color: var(--white);
  margin-left: 15px;
  font-size: 14px;
  transition: opacity 0.3s;
}

.top-bar-right a:hover {
  opacity: 0.8;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  position: relative;
  color: var(--primary-green);
  font-size: 28px;
}

.logo-plus {
  position: absolute;
  top: -5px;
  right: -10px;
  color: #e74c3c;
  font-size: 14px;
}

.logo-text h1 {
  font-size: 20px;
  color: var(--primary-green);
  margin: 0;
  line-height: 1;
  letter-spacing: 1px;
}

.logo-text span {
  font-size: 10px;
  color: var(--text-dark);
  font-weight: 600;
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: 15px;
}

.nav-links {
  display: flex;
  gap: 15px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-green);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-green);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.contact-info .phone {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-blue);
}

.contact-info .text {
  font-size: 12px;
  color: var(--text-light);
}

/* Hero Section */
.hero {
  position: relative;
  height: 550px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Gradient overlay to make text readable */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, rgba(240, 248, 255, 0.95) 0%, rgba(240, 248, 255, 0.8) 50%, rgba(240, 248, 255, 0) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 550px;
  margin-left: 10%;
}

.hero-content h2 {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--dark-blue);
}

.hero-content h2 span {
  color: var(--primary-green);
}

.hero-content p {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 30px;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

/* Stats Banner */
.stats-container {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 2;
}

.stats-banner {
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  padding: 30px 40px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  padding-right: 40px;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background-color: var(--border-color);
}

.stat-icon {
  font-size: 32px;
  color: var(--primary-green);
  background-color: rgba(55, 139, 89, 0.1);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-text h3 {
  font-size: 20px;
  color: var(--dark-blue);
  margin-bottom: 2px;
}

.stat-text p {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}

/* Common Utilities */
.text-center {
  text-align: center;
}

.mt-40 {
  margin-top: 40px;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header .subtitle {
  display: block;
  color: var(--primary-green);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: 32px;
  color: var(--dark-blue);
}

/* Services Section */
.services {
  padding: 120px 0 80px;
  background-color: var(--bg-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 25px;
}

.service-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.service-img {
  height: 150px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.service-content {
  padding: 15px;
}

.service-content h3 {
  font-size: 16px;
  margin-bottom: 5px;
  color: var(--dark-blue);
}

.service-content p {
  font-size: 12px;
  color: var(--text-light);
}

/* Packages Section */
.packages {
  padding: 80px 0;
  background-color: var(--white);
}

.section-desc {
  color: var(--text-light);
  max-width: 600px;
  margin: 10px auto 0;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.package-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.package-img {
  height: 180px;
  overflow: hidden;
}

.package-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.package-content {
  padding: 30px;
}

.package-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--dark-blue);
}

.price {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 15px;
  font-family: var(--font-heading);
}

.package-desc {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
  min-height: 40px;
}

.package-features {
  margin-bottom: 30px;
}

.package-features li {
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.package-features li i {
  color: var(--primary-green);
  font-size: 12px;
}

.btn-full {
  display: block;
  width: 100%;
}

/* Feature Banner */
.feature-banner {
  padding: 80px 0;
  background-color: var(--bg-gray);
}

.feature-box {
  display: flex;
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 60px;
}

.feature-img {
  flex: 1;
  min-height: 300px;
}

.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-content {
  flex: 1;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.feature-content h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.feature-content p {
  color: var(--text-light);
  margin-bottom: 30px;
}

/* Highlights */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  background-color: rgba(55, 139, 89, 0.05);
  padding: 30px;
  border-radius: 8px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.highlight-icon {
  font-size: 32px;
  color: var(--primary-green);
}

.highlight-text h4 {
  font-size: 16px;
  margin-bottom: 5px;
}

.highlight-text p {
  font-size: 12px;
  color: var(--text-light);
}

/* Footer */
.footer {
  background-color: var(--white);
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

/* Emergency Contact */
.emergency {
  background-color: var(--dark-blue);
  color: var(--white);
  padding: 30px;
  border-radius: 8px;
}

.emergency h4 {
  color: var(--white);
}

.emergency-phone {
  display: flex;
  align-items: center;
  gap: 15px;
}

.emergency-phone i {
  font-size: 32px;
  color: var(--primary-green);
}

.emergency-phone h2 {
  color: var(--white);
  font-size: 24px;
  margin-bottom: 5px;
}

.emergency-phone p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Subscribe */
.subscribe p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 15px;
}

.subscribe-form {
  display: flex;
  gap: 10px;
}

.subscribe-form input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  outline: none;
}

.subscribe-form input:focus {
  border-color: var(--primary-green);
}

/* Links */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.links h4 {
  width: 100%;
}

.links ul {
  flex: 1;
}

.links li {
  margin-bottom: 12px;
}

.links a {
  font-size: 14px;
  color: var(--text-light);
  transition: color 0.3s;
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  font-size: 24px;
  color: var(--primary-blue);
  cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .stats-banner {
    flex-wrap: wrap;
    gap: 20px;
  }

  .stat-item {
    width: 45%;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .feature-box {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .top-bar-inner {
    flex-direction: column;
    gap: 10px;
  }

  .navbar {
    position: relative;
    padding: 15px 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  
  .nav-menu.active {
    display: flex;
  }

  .nav-links {
    display: flex;
    position: static;
    flex-direction: column;
    padding: 20px;
    box-shadow: none;
    gap: 15px;
  }

  .nav-right {
    display: flex;
    position: static;
    background: #f8fafc;
    flex-direction: column;
    padding: 20px;
    text-align: center;
    box-shadow: none;
  }

  .hero-content h2 {
    font-size: 32px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* Mega Menu Styling */
.navbar {
  position: relative;
}

.header {
  position: relative;
}

.nav-links li.has-mega-menu {
  position: static;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1100px;
  background: var(--white);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(15px);
  transition: all 0.3s ease;
  z-index: 1050;
  margin-top: 10px;
}

.nav-links li.has-mega-menu:hover .mega-menu,
.nav-links li.has-mega-menu.mega-menu-active .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 40px;
}

.mega-menu-column h4 {
  color: var(--primary-green);
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mega-menu-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu-column ul li {
  margin-bottom: 12px;
}

.mega-menu-column ul li a {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s, padding-left 0.3s;
  display: inline-block;
}

.mega-menu-column ul li a:hover {
  color: var(--primary-green);
  padding-left: 5px;
}

/* Mega Menu Responsive */
@media (max-width: 1150px) {
  .mega-menu {
    width: 95%;
  }
  .mega-menu-inner {
    gap: 20px;
    padding: 20px;
  }
}

@media (max-width: 992px) {
  .mega-menu-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links li.has-mega-menu {
    display: flex;
    flex-direction: column;
  }
  .mega-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-radius: 0;
    margin-top: 10px;
    background: #f8fafc;
    padding: 10px;
    display: none;
  }
  .nav-links li.has-mega-menu:hover .mega-menu,
  .nav-links li.has-mega-menu.mega-menu-active .mega-menu {
    transform: none;
    display: block;
  }
  .mega-menu-inner {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 10px;
  }
  .mega-menu-column h4 {
    font-size: 14px;
    margin-bottom: 10px;
  }
  .mega-menu-column ul li a {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
/* Tests List Styles (Desktop) */
.tests-list-header {
    display: flex;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 2px solid #eee;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.test-list-row {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}
.test-list-row:hover {
    background: #fdfdfd;
}

.col-name { flex: 2; }
.col-time { flex: 1; }
.col-price { flex: 1; }
.col-action { flex: 1; text-align: right; }

.test-details-col {
    display: flex;
    align-items: center;
    gap: 15px;
}
.test-img-wrap {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.test-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.test-details-col h4 {
    margin: 0;
    font-size: 1rem;
    color: #222;
    text-transform: capitalize;
    font-weight: 600;
}
.test-details-col p {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: #777;
}

.test-time-col {
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}

.test-price-col {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
}

.test-action-col .btn {
    padding: 8px 24px;
    font-size: 0.9rem;
    border-radius: 6px;
    background: var(--primary-green);
    border: none;
}

/* Mobile Responsive Adjustments for Tests List */
@media (max-width: 768px) {
    .tests-list-header {
        display: none; /* Hide header on mobile */
    }
    .test-list-row {
        flex-wrap: wrap;
        padding: 15px;
        position: relative;
    }
    
    .col-name {
        flex: 0 0 100%;
        margin-bottom: 12px;
    }
    
    .col-time, .col-price {
        flex: 1;
        font-size: 0.85rem;
    }
    
    .test-price-col {
        font-size: 1rem;
    }
    
    .col-action {
        flex: 0 0 auto;
    }
    .test-action-col .btn {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
}

/* NEW UI STYLES */

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}
.cat-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid #f0f0f0;
}
.cat-card:hover {
    transform: translateY(-5px);
}
.cat-img {
    height: 140px;
    overflow: hidden;
}
.cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cat-content {
    padding: 15px;
}
.cat-content h3 {
    margin: 0 0 5px;
    font-size: 1rem;
    color: #222;
}
.cat-count {
    font-size: 0.75rem;
    color: #777;
    display: block;
    margin-bottom: 8px;
}
.cat-content p {
    font-size: 0.8rem;
    color: #666;
    margin: 0 0 15px;
    line-height: 1.4;
    min-height: 35px;
}
.cat-link {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}
.cat-link:hover {
    color: #1e6d42;
}

/* Packages Banner */
.packages-banner {
    background: #f0f7f3;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    border: 1px solid #e1f0e8;
}
.pb-left {
    flex: 1 1 300px;
    padding: 25px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.pb-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.pb-text h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: #222;
}
.pb-text p {
    margin: 0;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}
.pb-right {
    flex: 2 1 500px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 25px;
    align-items: center;
    justify-content: flex-end;
}
.pb-mini-card {
    background: #fff;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    flex: 1 1 180px;
    min-width: 180px;
    border: 1px solid #eaeaea;
}
.pb-mc-icon {
    color: var(--primary-green);
    font-size: 1.2rem;
}
.pb-mini-card h4 {
    margin: 0 0 2px;
    font-size: 0.85rem;
    color: #333;
}
.pb-mini-card span {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}
.feature-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.feat-icon {
    width: 45px;
    height: 45px;
    background: #f0f7f3;
    color: var(--primary-green);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.feat-text h4 {
    margin: 0 0 4px;
    font-size: 0.9rem;
    color: #222;
}
.feat-text p {
    margin: 0;
    font-size: 0.75rem;
    color: #666;
    line-height: 1.4;
}
