/* Gradient background for the body */
body {
  font-family: "Poppins", sans-serif; /* Modern, professional 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: #fff;
  font-size: 16px; /* Base font size for readability */
}

/* Main heading style */
h1 {
  color: #260000;
  margin-top: 30px;
  font-size: 3rem;
  font-weight: 600;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2); /* Light shadow for emphasis */
  letter-spacing: 1px;
  text-align: center;
}

/* Container for the resource cards */
ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 0;
  margin-top: 40px;
  max-width: 1200px;
}

/* Card style */
li {
  background: linear-gradient(135deg, #fff, #b3e5fc);
  border-radius: 20px;
  overflow: hidden;
  width: 320px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  position: relative; /* Allows for positioning of hover elements */
}

li:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25); /* Enhanced shadow for depth */
}

/* Card heading style */
li h3 {
  font-size: 1.8em;
  color: #333;
  margin: 20px 0;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Card image style */
li img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 4px solid #0288d1;
  transition: transform 0.5s ease, filter 0.5s ease;
}

li:hover img {
  transform: scale(1.08);
  filter: brightness(0.9); /* Subtle darkening on hover */
}

/* Card description text */
li p {
  font-size: 1rem;
  color: #555;
  margin: 15px 0;
  padding: 0 15px;
  line-height: 1.6; /* Improved readability */
}

/* Button inside card */
li button {
  background-color: #0288d1;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 10px 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 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 {
    display: block; /* Stacks cards on small screens */
  }

  li {
    width: 100%; /* Full width on smaller devices */
  }
}

/* Footer style */
footer {
  margin-top: 50px;
  text-align: center;
  font-size: 1rem;
  color: #ccc;
}
