/* ==========================================================================
   Free Resources hub + resource pages
   Reuses faith.css variables (--blue, --primary, --navy, etc.).
   Body is dark themed sitewide, so these sections set their own light bg
   to match the homepage hero look (#fafcff).
   ========================================================================== */

.fr-page { background: #fafcff; color: var(--navy); }

/* ---- Shared hero ---- */
.fr-hero {
  background: #fafcff;
  padding: 7rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.fr-hero .container { max-width: 880px; }
.fr-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.fr-hero .fr-intro {
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--slate);
  line-height: 1.6;
}

/* breadcrumb */
.fr-breadcrumb {
  font-size: 0.85rem;
  color: var(--slate-light);
  margin-bottom: 1.25rem;
}
.fr-breadcrumb a { color: var(--blue); font-weight: 600; }
.fr-breadcrumb a:hover { text-decoration: underline; }

/* ---- Resource card grid (hub) ---- */
.fr-grid-section { background: var(--bg-light); padding: 3rem 0 5rem; }
.fr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}
.fr-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--navy);
  height: 100%;
}
.fr-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}
.fr-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}
.fr-card h2 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.5rem; }
.fr-card p { color: var(--slate); font-size: 0.97rem; line-height: 1.55; flex: 1; }
.fr-card-link {
  margin-top: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.fr-card:hover .fr-card-link { gap: 0.65rem; }

/* ---- Resource article body ---- */
.fr-article { background: var(--white); padding: 0 0 4rem; }
.fr-article .container { max-width: 820px; text-align: left; }
.fr-article p { color: var(--slate); font-size: 1.05rem; line-height: 1.7; margin-bottom: 1rem; }
.fr-article h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}
.fr-article h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin: 1.75rem 0 0.5rem; }

/* ---- Download box ---- */
.fr-download {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  margin: 1.5rem 0 0;
}
.fr-download h2 { margin-top: 0; }
.fr-download-buttons { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1rem; }
.fr-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.25);
  transition: background 0.2s, transform 0.15s;
}
.fr-btn-download:hover { background: var(--blue-light); transform: translateY(-1px); }
.fr-btn-download.is-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--border);
  box-shadow: none;
}
.fr-btn-download.is-secondary:hover { background: #eef0f4; }

/* ---- Bridge to product ---- */
.fr-bridge {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin: 3rem auto 0;
  max-width: 820px;
  text-align: center;
}
.fr-bridge h2 { color: var(--white); margin-top: 0; }
.fr-bridge p { color: #cbd5e1; }
.fr-bridge-buttons { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 1.5rem; }
.fr-btn-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 22px rgba(6, 78, 59, 0.45);
  transition: background 0.2s, transform 0.15s;
}
.fr-btn-cta:hover { background: var(--primary-hover); transform: translateY(-1px); }
.fr-btn-cta small { font-weight: 500; font-size: 0.75rem; color: #fde047; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.15rem; }
.fr-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
}
.fr-btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* ---- Trust line ---- */
.fr-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 2.5rem auto 0;
  color: var(--slate);
  font-weight: 600;
  font-size: 0.98rem;
}
.fr-trust .fr-stars { color: #f59e0b; letter-spacing: 0.1em; }

/* ---- Worksheet preview list inside article ---- */
.fr-outline {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}
.fr-outline ul, .fr-outline ol { margin: 0.5rem 0 0 1.2rem; }
.fr-outline li { color: var(--slate); line-height: 1.7; margin-bottom: 0.35rem; }
.fr-blank { color: var(--navy); font-weight: 700; letter-spacing: 0.5px; }

@media (max-width: 600px) {
  .fr-hero { padding: 5.5rem 0 2rem; }
  .fr-bridge { padding: 1.75rem 1.25rem; }
  .fr-btn-download, .fr-btn-cta, .fr-btn-ghost { width: 100%; justify-content: center; }
}
