@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

body {
  font-family: "Poppins", sans-serif;
}
.header {
  background: url("../public/ourcompanybg.png");
  background-size: cover;
}

.container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  grid-template-rows: repeat(3, auto);   /* 3 rows */
  gap: 20px; /* space between cards */
  max-width: 1200px;
  width: 100%;
  padding: 40px;
}

.card {
  background-color: #ffffff;
  border: 1px solid #ddd !important;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: row;
  align-items:  center;
  justify-content: center;
  gap: 20px;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  background-color: #00437a;
  color: white;
}
.card:hover .title,
.card:hover .description {
  color: white;
}

.icon-wrapper {
  flex-shrink: 0; /* Prevent icon wrapper from shrinking */
  width: 80px;
  height: 80px;
  background-color: #f0f4f8; /* Light blue-gray background */
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-wrapper img {
  width: 60px; /* Adjust icon size */
  height: 60px;
  filter: invert(28%) sepia(80%) saturate(2476%) hue-rotate(200deg) brightness(90%) contrast(90%); /* Blue color for icons */
}

.content {
  flex-grow: 1;
}

.title {
  font-size: 18px;
  font-weight: 500;
  color: #1a202c; /* Dark text color */
  margin-top: 0;
  margin-bottom: 8px;
}


.description {
  font-size: 14px;
  color: #4a5568; /* Slightly lighter text color for description */
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {

  .container{
    padding: 60px 20px 10px 20px;
  }
  .card {
    flex-direction: column;
    align-items: start;
    text-align: left;
    justify-content: start;
    padding: 20px;
    gap: 5px;
  }

  .icon-wrapper {
    margin-bottom: 16px;
    justify-content:start;
  }

  .title {
    font-size: 18px;
  }

  .description {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .container{
    grid-template-columns: repeat(1, 1fr); /* 2 columns */
  }

  .card {
    padding: 16px;
  }

  .icon-wrapper {
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
  }

  .icon-wrapper img {
    width: 28px;
    height: 28px;
  }

  .title {
    font-size: 16px;
  }

  .description {
    font-size: 14px;
  }
}