/* General Styles */
body { 
  margin: 0; 
  font-family: Arial, sans-serif; 
  line-height: 1.6; 
  background-color: #fafafa; 
  overflow-x: hidden; /* Prevent horizontal scrollbars */
}

header { 
  background-color: #005daa; 
  color: white; 
  padding: 20px 0; 
  text-align: center; 
}

nav { 
  background: #003f7f; 
  padding: 10px 0; 
  text-align: center; 
}

nav a { 
  color: white; 
  margin: 0 15px; 
  text-decoration: none; 
  font-weight: bold; 
}

section { 
  padding: 40px 20px; 
  max-width: 1000px; 
  margin: auto; 
}

h2 { 
  color: #005daa; 
}

.services { 
  display: flex; 
  flex-wrap: nowrap; 
  gap: 20px; 
  justify-content: space-between; 
  overflow-x: auto; 
  overflow-y: hidden; /* Prevent vertical scroll */
}

.card { 
  flex: 1 1 0; 
  background: #f0f0f0; 
  padding: 20px; 
  border-radius: 8px; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
  text-align: center; 
  transition: transform 0.3s ease-in-out; 
  max-width: 300px; /* Set a maximum width for the cards */
  overflow: hidden; /* Prevent content overflow */
}

.card img { 
  width: 80px; 
  height: 80px; 
  object-fit: contain; 
  margin-bottom: 15px; 
}

.card:hover { 
  transform: scale(1.05); 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); 
}

form { 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
  max-width: 100%; 
  padding: 0 20px; 
}

input, textarea { 
  padding: 10px; 
  border: 1px solid #ccc; 
  border-radius: 5px; 
  width: 100%; 
  box-sizing: border-box; 
}

button { 
  background-color: #005daa; 
  color: white; 
  padding: 10px; 
  border: none; 
  border-radius: 5px; 
  cursor: pointer; 
  transition: background-color 0.3s ease; 
}

button:hover { 
  background-color: #004080; 
}

footer { 
  background: #003f7f; 
  color: white; 
  text-align: center; 
  padding: 15px 0; 
  margin-top: 40px; 
}


/* Logo Styling */
.logo {
  width: 200px; /* Adjust the width of the logo as needed */
  height: auto;
  display: block;
  margin: 0 auto 10px auto; /* Center logo and add margin */
}

/* About Section */
#about {
  background-color: #f9f9f9;
  padding: 40px 20px;
  text-align: center;
}

.about-content {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap; /* Allow items to wrap on small screens */
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.about-text {
  max-width: 600px;
  text-align: left;
}

.about-text a {
  color: #005daa;
  text-decoration: none;
}

.about-text a:hover {
  text-decoration: underline;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .services { 
    flex-wrap: wrap; 
  }
  .card { 
    flex: 1 1 100%; 
  }
  nav a { 
    display: block; 
    margin: 10px 0; 
  }
    .about-content {
    flex-direction: column; /* Stack image and text on mobile */
    text-align: center;
  }
}