* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f0f8ff;
}

/* Navbar Layout */
.navbar {
  position: relative;
  overflow: hidden;
}

.nav-bg img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  display: block;
  filter: brightness(55%) contrast(110%);
}
.nav-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* full height of the image */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(0, 0, 0, 0.45); /* dark overlay */
  text-align: center;
  padding: 0 20px;
}

.nav-overlay h1 {
  font-size: 42px;
  font-weight: bold;
  margin: 0;
  line-height: 1.2;
}


/* Navbar Links */
nav {
  background-color: #17b2d1; /* Deep teal-blue */
  padding: 12px;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 0;
}

.nav-links a {
  position: relative;
  padding: 10px 20px;
  color: #e0f7fa;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
}

/* Underline effect for active/hover */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: transparent;
  transition: background-color 0.3s;
}
.nav-links a:hover{
  text-decoration: underline;
  color:yellow;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  background-color: #00d8d6; /* Cyan underline */
}

/* Main Content */
.content {
  background-color: #caf0f8;
  padding: 40px;
  max-width: 1400px;
  margin: 60px auto;
  border-radius: 12px;
  color: #000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.content h2 {
  font-size: 28px;
  color: #023e8a;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
}

/* Cards */
.defect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.defect-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.defect-card:hover {
  transform: scale(1.03);
}

.defect-card h3 {
  color: #0077b6;
  margin-bottom: 10px;
}

.defect-card p {
  margin: 6px 0;
  line-height: 1.5;
}
