/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two columns */
  gap: 20px;
  max-width: 1200px; /* Adjusted width for two columns */
  margin: 0 auto;
  padding: 20px;
}

/* Project Card */
.project-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Project Header */
.project-header {
  background-color: #E57200;
  color: #ffffff;
  padding: 15px;
  text-align: center;
}

.project-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #ffffff; /* Ensure header text is white for contrast */
}

.project-type {
  display: inline-block;
  margin-top: 5px;
  padding: 5px 10px;
  background-color: #00356b;
  border-radius: 5px;
  font-size: 0.9rem;
  color: #ffffff; /* Ensure type text is white for contrast */
}

/* Project Content */
.project-content {
  padding: 20px;
  text-align: center;
}

.project-logo {
  width: 100%;
  height: auto;
  max-height: 100px; /* Adjust this value as needed */
  object-fit: contain;
  margin-bottom: 15px;
}

.project-description {
  font-size: 1rem;
  color: #0000007e !important; /* Use !important to override any conflicting styles */
  margin-bottom: 10px;
}

.project-researchers {
  font-size: 0.9rem;
  color: #000000 !important; /* Use !important to override any conflicting styles */
}

/* Responsive Design */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr; /* Single column on smaller screens */
  }

  .project-header h3 {
    font-size: 1.2rem;
  }

  .project-description {
    font-size: 0.9rem;
  }
}

/* Clients Grid */
.clients-section {
  margin-bottom: 60px;
}

.clients-section h3 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Client Card */
.client-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 200px;
}

.client-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.client-logo {
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  margin-bottom: 15px;
  display: block;
}

.client-name {
  text-align: center;
  color: #232d4b !important;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  padding-top: 10px;
  width: 100%;
  display: block;
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 768px) {
  .clients-section {
    margin-bottom: 40px;
  }

  .clients-section h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    padding: 0 15px;
  }

  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 15px;
  }

  .client-card {
    padding: 20px;
  }

  .client-logo {
    max-height: 100px;
  }
}

@media (max-width: 480px) {
  .clients-section h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .clients-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 10px;
  }

  .client-card {
    padding: 16px;
  }

  .client-logo {
    max-height: 80px;
  }
}

/* Additional mobile optimizations */
@media (max-width: 768px) {
  /* Ensure proper touch targets */
  .client-card {
    min-height: 120px;
  }

  /* Improve text readability on mobile */
  .clients-section h3 {
    line-height: 1.2;
  }
}
