/* Resource Library Styles - modeled on blog.css */

:root {
  --color-white: #ffffff;
  --color-primary: #9b59b6;
  --color-accent1: #e98074;
  --color-secondary: #7e5a9b;
  --color-accent2: #f4c987;
  --color-dark: #5d4b4b;
  --font-heading: 'HandyCasual', 'Sue Ellen Francisco', cursive;
}

/* ---------- Containers ---------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Hero Section ---------- */
.hero-section {
  position: relative;
  padding: 4rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-dark);
  text-align: center;
  overflow: hidden;
}

.hero-section .hero-container {
  max-width: 900px;
}

.hero-section h1 {
  font-size: 2rem;
  font-family: var(--font-heading);
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.hero-section p {
  font-size: 1rem;
  color: #444;
}

/* Section titles */
.pdf-resources-section h2,
.blog-resources-section h2,
.hero-section h2 {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.6rem; /* larger, prominent section headings */
  color: var(--color-dark);
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

@media (max-width: 480px) {
  .pdf-resources-section h2,
  .blog-resources-section h2,
  .hero-section h2 { font-size: 1.3rem; }
}

/* ---------- Resource Grid ---------- */
.pdf-resources-section,
.blog-resources-section {
  padding: 2rem 0 4rem;
}

.resource-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

/* ---------- Resource Card ---------- */
.resource-card {
  background-color: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  flex: 1 1 320px; /* enable 3-up layout: flexible, with 320px base */
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 3px solid transparent;
  transition: all 0.4s ease;
} 

.resource-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.resource-card-content {
  padding: 1.2rem;
  text-align: left;
}

.resource-card h3 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.resource-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}

.resource-card .btn {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.6rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.25s ease;
}

.resource-card .btn:hover {
  background: #7d3c98;
}

/* ---------- Accent Hover Glow ---------- */
.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.resource-card:nth-child(1):hover {
  border-color: var(--color-accent1);
  box-shadow: 0 0 18px rgba(233, 128, 116, 0.3);
}

.resource-card:nth-child(2):hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 18px rgba(42, 107, 112, 0.3);
}

.resource-card:nth-child(3):hover {
  border-color: var(--color-secondary);
  box-shadow: 0 0 18px rgba(126, 90, 155, 0.3);
}

.resource-card:nth-child(4):hover {
  border-color: var(--color-accent2);
  box-shadow: 0 0 18px rgba(244, 201, 131, 0.3);
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.4s ease-in-out;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .resource-card img { height: 200px; }
  .resource-card { max-width: 320px; }
}

@media (max-width: 480px) {
  .hero-section { padding: 2.5rem 0; }
  .hero-section h1 { font-size: 1.6rem; }
  .resource-card img { height: 160px; }
  .resource-card { max-width: 100%; }
  .resource-grid { gap: 1rem; }
}
