/* RESET AND BASE SETUP */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f7f9fc;
  color: #222;
}

/* ===== HEADER / TOP NAVIGATION ===== */
header {
  background-color: #083d77;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 999;
}

/* LOGO TEXT */
.logo {
  font-size: 24px;
  color: #ffffff;
  font-weight: bold;
  letter-spacing: 1px;
}

/* NAVIGATION LINKS */
.nav-links {
  list-style: none;
  display: flex;
  gap: 4px; /* Reduced gap between navigation links */
}

.nav-links li {
  display: inline-block;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 10px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #ffc107;
  left: 0;
  bottom: 0;
  transition: width 0.3s ease;
}

.nav-links li a:hover {
  color: #ffc107;
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Main Container for the Products */
.ultrasound-container {
  padding: 40px 20px;
  text-align: center;
}

/* Page Title */
.page-title {
  font-size: 36px;
  margin-bottom: 40px;
  color: #083d77;
  font-weight: bold;
}

/* Product List Styles */
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 0 20px;
}

/* Individual Product Card Styles */
.product-card {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px);
}

.product-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.product-card h2 {
  margin-top: 15px;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.product-card p {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

/* Fade-in Animation */
.fade-in {
  animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover Effect for Product Cards */
.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .page-title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .header .nav-links {
    display: none;
  }

  .header {
    flex-direction: column;
    align-items: center;
  }

  .product-card {
    padding: 15px;
  }

  .page-title {
    font-size: 24px;
  }
}
