/* Gradient background for the body */
body {
  font-family: "Poppins", sans-serif; /* More modern and elegant font */
  background: linear-gradient(135deg, hwb(250 0% 7% / 0.052), rgb(5, 61, 71));
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: #fff; /* Better contrast for text */
}

/* Main heading style */
h1 {
  color: #260000;
  margin-top: 30px;
  font-size: 3rem;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Light shadow for better contrast */
  letter-spacing: 1.2px; /* Slight spacing for a more elegant look */
  font-weight: 600; /* Bolder heading for emphasis */
}

/* Container for the resource cards */
ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 35px;
  padding: 0;
  margin-top: 50px;
  max-width: 1200px; /* Limit the width for better alignment */
}

/* Card style */
li {
  background: linear-gradient(135deg, #f0f0f0, #d3dce6);
  border-radius: 20px;
  overflow: hidden;
  width: 320px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Slightly increased shadow for better depth */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15px;
  position: relative; /* Allows for better hover effects */
}

li:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); /* Sharper shadow on hover */
}

/* Card heading style */
li h2 {
  font-size: 1.8em;
  color: #333;
  margin: 20px 0;
  font-weight: 600; /* Bolder heading */
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

li h4 {
  font-size: 1.1em;
  color: #555;
  margin: 10px 0 20px;
  padding: 0 10px;
  font-weight: 400;
  line-height: 1.5; /* Increased line height for readability */
}

/* Card image */
li img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 5px solid #0288d1; /* Add a solid accent color */
  transition: transform 0.5s ease, filter 0.5s ease; /* Transition for both zoom and filter */
}

li:hover img {
  transform: scale(1.05);
  filter: brightness(0.9); /* Slightly darken the image on hover */
}

/* Button for actions */
li button {
  background-color: #0288d1;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 15px;
}

li button:hover {
  background-color: #026a99;
}

/* Link styling */
li a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
}

li a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
  ul {
    grid-template-columns: 1fr; /* Stacks cards on small screens */
  }

  li {
    width: 100%; /* Full width on small screens */
  }
}
