:root {
  --resources-green: #22d837;
  --resources-dark: #0b3b26;
  --resources-deep: #072717;
  --resources-soft: #d1fae5;
  --resources-mint: #6ee7b7;
}

body.resources-page {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
  font-family: 'Poppins', sans-serif;
  color: #e8f7ee;
  overflow-x: hidden;
  padding-top: 0;
}

.resources-page-main {
  position: relative;
  z-index: 1;
}

.resources-page-main section {
  opacity: 1;
  transform: none;
  transition: none;
}

.resources-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 0 5rem;
  overflow: hidden;
}

.resources-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(6,78,59,0.8) 0%, rgba(6,95,70,0.9) 100%);
  animation: resources-bg-shift 18s ease-in-out infinite;
  transform: translate3d(var(--bg-shift-x, 0px), var(--bg-shift-y, 0px), 0);
  transition: transform 0.2s ease-out;
  will-change: background-position, transform;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.06;
  animation: gridFloat 30s linear infinite;
  pointer-events: none;
}

.resources-hero-bg .hero-blob {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(80px);
  transform: translate3d(var(--blob-offset-x, 0px), var(--blob-offset-y, 0px), 0);
  transition: transform 0.25s ease-out;
  will-change: transform;
  overflow: hidden;
}

.resources-hero-bg .hero-blob::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--blob-color, radial-gradient(circle, #047857, transparent));
  opacity: var(--blob-opacity, 0.26);
  animation: var(--blob-animation, blob-float-1 20s ease-in-out infinite);
}

.blob-1 { top: 10%; left: 10%; --blob-color: radial-gradient(circle, #047857, transparent); --blob-opacity: 0.32; --blob-animation: blob-float-1 20s ease-in-out infinite; }
.blob-2 { top: 40%; right: 10%; --blob-color: radial-gradient(circle, #065f46, transparent); --blob-opacity: 0.24; --blob-animation: blob-float-2 25s ease-in-out infinite; }
.blob-3 { bottom: 10%; left: 30%; --blob-color: radial-gradient(circle, #10b981, transparent); --blob-opacity: 0.28; --blob-animation: blob-float-3 22s ease-in-out infinite; }

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #10b981;
  border-radius: 50%;
  animation: particle-float 5s ease-in-out infinite;
  opacity: 0.35;
  pointer-events: none;
}

@keyframes blob-float-1 { 0%,100% {transform: translate(0,0) scale(1);} 33% {transform: translate(50px,30px) scale(1.2);} 66% {transform: translate(-30px,40px) scale(1.1);} }
@keyframes blob-float-2 { 0%,100% {transform: translate(0,0) scale(1);} 33% {transform: translate(-40px,-30px) scale(1.3);} 66% {transform: translate(30px,-40px) scale(1.15);} }
@keyframes blob-float-3 { 0%,100% {transform: translate(0,0) scale(1);} 33% {transform: translate(30px,-20px) scale(1.4);} 66% {transform: translate(-20px,30px) scale(1.2);} }
@keyframes gridFloat { from { transform: translate(0,0);} to { transform: translate(100px,100px);} }
@keyframes particle-float { 0%, 100% { transform: translateY(0) scale(1); opacity: 0.25; } 50% { transform: translateY(-40px) scale(1.45); opacity: 0.6; } }

.resources-hero-content {
  position: relative;
  z-index: 2;
  max-width: 80rem;
  padding: 8rem 1.5rem;
  text-align: center;
}

.badge.resources-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 2rem;
  animation: fadeInDown 0.6s ease-out;
}
.badge-icon { width: 1rem; height: 1rem; color: #a7f3d0; }
.badge-text { font-size: 0.875rem; color: #fff; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }

.title-main {
  display: block;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.title-sub {
  display: block;
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 700;
  color: #a7f3d0;
  text-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.description {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.95);
  max-width: 48rem;
  margin: 0 auto 3rem;
  line-height: 1.75;
}

.search-container { max-width: 42rem; margin: 0 auto 4rem; }
.search-wrapper { position: relative; }
.search-icon {
  position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%);
  width: 1.25rem; height: 1.25rem; color: #9ca3af;
}
.search-input {
  width: 100%;
  padding: 1rem 1.5rem 1rem 3.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #111827;
  font-size: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.search-input::placeholder { color: #9ca3af; }
.search-input:focus { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.4); border-color: transparent; outline: none; }

.stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 4rem;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.stat-card:hover { transform: translateY(-5px) scale(1.05); }
.stat-icon-wrapper {
  width: 3rem; height: 3rem; border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.3);
}
.stat-icon { width: 1.5rem; height: 1.5rem; color: #fff; }
.stat-content { text-align: left; }
.stat-value { font-weight: 700; color: #fff; font-size: 1.125rem; }
.stat-label { font-size: 0.875rem; color: rgba(255,255,255,0.8); }

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-indicator-inner {
  width: 1.5rem; height: 2.5rem;
  border-radius: 9999px;
  border: 2px solid rgba(255,255,255,0.5);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 0.5rem;
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-indicator-dot {
  width: 0.375rem; height: 0.375rem; background: #fff; border-radius: 9999px;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollBounce { 0%,100% {transform: translateY(0);} 50% {transform: translateY(10px);} }
@keyframes scrollDot { 0%,100% {transform: translateY(0);} 50% {transform: translateY(12px);} }

.resources-subtitle {
  font-size: 1.2rem;
  color: var(--resources-soft);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.resources-search {
  position: relative;
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

.resources-search input {
  width: 100%;
  padding: 1.1rem 1.1rem 1.1rem 3.4rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-size: 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  outline: none;
}

.resources-search i {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
}

.resources-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.resources-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.4rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  min-width: 190px;
}

.resources-stat i {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.resources-stat strong {
  display: block;
  font-size: 1rem;
  color: #ffffff;
}

.resources-stat span {
  display: block;
  font-size: 0.85rem;
  color: #d9f7e6;
}

.resources-scroll {
  width: 28px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
  animation: resources-float 2.5s ease-in-out infinite;
}

.resources-scroll span {
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 999px;
  animation: resources-scroll-dot 2.2s ease-in-out infinite;
}

.resources-section {
  background: linear-gradient(180deg, #064e3b 0%, #065f46 40%, #047857 100%);
  padding: 6rem 0 4rem;
}

.resources-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.resources-metric {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 1.6rem 1.2rem;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.resources-metric h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.resources-metric p {
  color: #d1fae5;
  font-size: 0.9rem;
}

.resources-block {
  margin-bottom: 5rem;
}

.resources-block__header {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.resources-block__bar {
  width: 6px;
  height: 64px;
  border-radius: 999px;
  background: linear-gradient(180deg, #22d837, #6ee7b7);
}

.resources-block__header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #ffffff;
  margin-bottom: 0.4rem;
  font-weight: 800;
}

.resources-block__header p {
  color: #d1fae5;
  font-size: 1rem;
  max-width: 620px;
}

.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.catalogue-card {
  cursor: pointer;
}

.catalogue-card__inner {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  padding: 0;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--card-color) 0%, rgba(6, 95, 70, 0.85) 100%);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalogue-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--card-color), rgba(6, 95, 70, 0.75));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalogue-cover canvas {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: contrast(0.98) saturate(1.08);
}

.catalogue-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 70%);
  pointer-events: none;
}

.catalogue-card__body {
  display: none;
}

.catalogue-cover--fallback::before,
.catalogue-cover--error::before {
  content: "Preview unavailable";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.catalogue-card__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.6) 1px, transparent 0);
  background-size: 48px 48px;
  opacity: 0.08;
}

.catalogue-card__inner:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.catalogue-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: #facc15;
  color: #1f2937;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.catalogue-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-size: 1.8rem;
}

.catalogue-card__inner h3 {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.catalogue-pages {
  display: inline-flex;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.catalogue-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.catalogue-card__inner:hover .catalogue-overlay {
  opacity: 1;
}

.catalogue-btn {
  width: 70%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: #ffffff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.catalogue-btn.outline {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.catalogue-card__copy {
  margin-top: 1.5rem;
}

.catalogue-card__copy h4 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.catalogue-card__copy p {
  color: #ccebdc;
  font-size: 0.9rem;
  line-height: 1.6;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.resource-card {
  padding: 1.8rem;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.resource-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.35);
}

.resource-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  background: rgba(255, 255, 255, 0.12);
  color: var(--icon-color, #22d837);
  font-size: 1.4rem;
}

.resource-card h3 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.resource-card p {
  color: #d1fae5;
  font-size: 0.95rem;
  line-height: 1.6;
}

.resources-testimonials {
  background: linear-gradient(180deg, #0f3a2b 0%, #0a2c20 100%);
  padding: 5rem 0;
}

.resources-testimonials h2 {
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 0.6rem;
  text-align: center;
}

.resources-testimonials p.subtitle {
  color: #bfe6d2;
  text-align: center;
  margin-bottom: 2.5rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.testimonial-stars {
  display: flex;
  gap: 0.2rem;
  color: #fbbf24;
  margin-bottom: 1rem;
}

.testimonial-card p {
  color: #e5f7ef;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
}

.testimonial-author strong {
  display: block;
  color: #ffffff;
}

.testimonial-author span {
  color: #b7decf;
  font-size: 0.9rem;
}

.resources-cta {
  background: linear-gradient(135deg, #0b2f22 0%, #052118 100%);
  padding: 5rem 0;
}

.resources-cta-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  padding: 3rem 2.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.resources-cta-card h2 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.resources-cta-card p {
  color: #d1fae5;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.resources-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #059669, #22d837);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25);
}

@keyframes resources-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes resources-bg-shift {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 10%; }
}

@keyframes resources-scroll-dot {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(12px); opacity: 0.3; }
}

@media (max-width: 768px) {
  .resources-hero {
    padding: 6rem 0 4rem;
  }

  .resources-title {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .resources-subtitle {
    font-size: 1rem;
  }

  .resources-stats {
    gap: 1rem;
  }

  .resources-stat {
    min-width: 160px;
  }

  .resources-block__header {
    flex-direction: column;
  }

  .resources-block__bar {
    height: 6px;
    width: 80px;
  }
}
