/* Resources Section Styles */
#resources {
  text-align: center;
  padding: 2rem 1rem;
  height: auto;
}

#resources h2 {
  text-align: center;
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 500;
}

/* Resources grid layout */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-content: center;
  margin: 2rem auto;
  padding: 0 2rem;
  max-width: 1200px;
}

/* Resource card styling - exact same as pricing cards */
.resource-card {
  background: linear-gradient(135deg, #ffffff 0%, #f2f7ff 100%);
  border: 1px solid #e8f0fe;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 0;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* Resource card thumbnail - sticks to top, left, right borders */
.resource-card .thumbnail {
  width: 100%;
  height: 180px;
  border-radius: 12px 12px 0 0;
  object-fit: cover;
  margin-bottom: 0;
  display: block;
}

/* Content area with padding */
.resource-card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Resource card title - smaller */
.resource-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: #333;
  line-height: 1.3;
}

/* Resource card description - smaller */
.resource-card p {
  font-size: 0.75rem;
  color: #666;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
  flex-grow: 1;
}

/* Read more link - gray */
.resource-card .read-link {
  color: #666;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.resource-card:hover .read-link {
  color: #333;
}

.resource-card .read-link::after {
  content: '→';
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.resource-card:hover .read-link::after {
  transform: translateX(3px);
}

/* Mobile layout */
@media (max-width: 1000px) {
  .resources-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .resource-card-content {
    padding: 1rem;
  }
  
  .resource-card h3 {
    font-size: 1.1rem; /* Slightly bigger titles for mobile scanning */
  }
  
  .resource-card .thumbnail {
    height: 120px; /* Shorter thumbnail on mobile too */
  }
}

/* Tablet layout */
@media (min-width: 768px) and (max-width: 1000px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}