/* Gradient background for the body */
body {
  font-family: "Poppins", sans-serif; /* More modern font */
  background: linear-gradient(135deg, #e0f7fa, #0288d1);
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  color: #333; /* Consistent color scheme */
}

/* Main heading style */
h1 {
  color: #260000;
  margin-top: 30px;
  font-size: 3rem;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* Light shadow for better contrast */
  letter-spacing: 1.5px; /* Spacing for more elegance */
}

/* Container for the resource cards */
ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
  gap: 40px;
  padding: 0;
  margin-top: 40px;
  max-width: 900px; /* To limit the total width */
}

/* Card style */
li {
  background: linear-gradient(135deg, #ffffff, #81d4fa);
  border-radius: 15px;
  overflow: hidden;
  width: 100%; /* Full width within grid column */
  max-width: 420px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 15px;
}

li:hover {
  transform: translateY(-8px); /* Subtle movement */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Card image style */
li img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 5px solid #0288d1;
  transition: transform 0.5s ease, filter 0.5s ease; /* Added filter transition */
}

li:hover img {
  transform: scale(1.05);
  filter: brightness(0.9); /* Darken image on hover */
}

/* Card heading style */
li h3 {
  font-size: 1.7rem; /* Increased for more prominence */
  color: #0288d1;
  margin: 20px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Link styling */
li a {
  text-decoration: none;
  color: inherit;
}

li a:hover {
  opacity: 0.85;
  text-decoration: underline; /* Subtle underline on hover */
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
  ul {
    grid-template-columns: 1fr; /* Stack cards on small screens */
  }
}
