body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f8f8;
  color: #333;
  text-align: center;
}

header {
  background: linear-gradient(135deg, #76c893, #4CAF50);
  color: white;
  padding: 80px 20px;
  text-align: center;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

header h1 {
  font-size: 50px;
  margin: 0 0 20px 0;
}

nav a {
  margin: 0 10px;
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

section {
  padding: 50px 20px;
}

footer {
  background-color: #333;
  color: white;
  padding: 20px 0;
}

/* Updated .cards class for vertical stacking and center alignment */
.cards {
  display: flex;
  flex-direction: column;  /* Stacks the cards vertically */
  align-items: center;     /* Centers the cards horizontally */
  gap: 40px;               /* Adds space between the cards */
  margin-top: 30px;
}

.card {
  background-color: white;
  border-radius: 15px;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: flex;
  gap: 20px;
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 15px;
}

.card h3 {
  margin-top: 0;
  color: #4CAF50;
}

.card p {
  font-size: 16px;
  color: #555;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Separator Line */
.card-separator {
  border: 0;
  height: 1px;
  background-color: #ddd;
  margin: 15px 0; /* Adds spacing around the line */
}

/* Recent Research Styling */
.card p {
  font-size: 16px;
  color: #555;
}

/* Ensures the link and icon are on the same line */
.card a {
  display: inline-flex;   /* Make the link an inline flex container */
  align-items: center;    /* Vertically center the icon and text */
  font-size: 16px;        /* Optional: Adjust font size for consistency */
}

.card a i {
  margin-right: 8px;      /* Adds space between the icon and the text */
}

.card p {
  margin: 0;              /* Removes any extra margins that might break the line */
}

/* Link icon styles (FontAwesome) */
a i {
  margin-right: 8px;
  color: #4CAF50;
}

a {
  text-decoration: none;
  color: #4CAF50;
}

a:hover {
  text-decoration: underline;
}
