/* Section */
.resources-section {
  padding: 80px 40px;
  background: linear-gradient(135deg, #eef2ff, #f0fdf4, #ecfeff);
  font-family: 'Segoe UI', sans-serif;
}

/* Title */
.resources-title {
  text-align: center;
  font-size: 38px;
  color: #0f172a;
  margin-bottom: 15px;
}

.resources-intro {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
  font-size: 17px;
  color: #475569;
}

/* Container */
.resources-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

/* Resource card */
.resource-card {
  background: #ffffff;
  padding: 35px;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

/* Animated gradient border */
.resource-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(
    120deg,
    #38bdf8,
    #22c55e,
    #a855f7
  );
  border-radius: 24px;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Hover: lift + glow */
.resource-card:hover {
  transform: translateY(-12px) scale(1.015);
  box-shadow: 0 30px 65px rgba(0,0,0,0.18);
}

.resource-card:hover::before {
  opacity: 1;
}

/* Headings */
.resource-card h3 {
  font-size: 22px;
  margin-bottom: 18px;
  color: #020617;
}

/* Link */
.resource-link a {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  text-decoration: none;
  color: #0f766e;
  background: #ecfeff;
  transition: background 0.3s ease, transform 0.3s ease;
}

/* Link hover */
.resource-card:hover .resource-link a {
  background: linear-gradient(90deg, #22c55e, #38bdf8);
  color: #ffffff;
  transform: translateX(6px);
}

/* Text */
.resource-summary p,
.resource-summary li {
  font-size: 16px;
  color: #334155;
  line-height: 1.7;
}

.resource-summary ul {
  margin: 12px 0;
  padding-left: 18px;
}

.resource-summary li {
  margin-bottom: 8px;
}

/* Subtle background motion */
.resource-card::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(56,189,248,0.15), transparent 70%);
  top: -50px;
  right: -50px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.resource-card:hover::after {
  opacity: 1;
}
