/* =========================================================
   More Resources page – Transparent Overlay Layout
   ========================================================= */

.page-more {
  width: 100%;
  /* Background is handled by the hero covering the viewport/content */
}

/* ---------------------------------------------------------
   Hero adjustments
   --------------------------------------------------------- */

.hero--more {
  /* Allow height to grow with content */
  height: auto;
  min-height: 100vh;
  padding-top: 96px; /* Header (96px) + spacing */
  margin-top: -96px; /* Pull hero to top, covering the spacer */
  padding-bottom: 32px;
  align-items: center; /* Center content vertically */
}

.hero--more .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px; /* Space between title and cards */
}

.hero--more .hero-text {
  text-align: center;
  max-width: 920px;
  padding: 0;
  flex: 0 0 auto; /* Reset: anula o flex-basis de 520px do styles.css que forçava uma altura gigante */
}

.hero--more .hero-text h1 {
  margin-bottom: 8px;
}

.hero--more .hero-text p {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
  margin-bottom: 0;
}

/* ---------------------------------------------------------
   Resources Grid (Overlay)
   --------------------------------------------------------- */

.more-resources {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 0;
}

.resource-card {
  /* Glassmorphism base (Dark Mode default) */
  background-color: rgba(14, 17, 17, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  
  border-radius: 24px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand);
  background-color: rgba(14, 17, 17, 0.75);
}

/* Light Mode adjustments */
@media (prefers-color-scheme: light) {
  .resource-card {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  }

  .resource-card:hover {
    background-color: rgba(255, 255, 255, 0.8);
  }

  /* Reduce hero overlay opacity by ~50% for this page */
  .hero--more {
    --overlay-top: rgba(246, 247, 248, 0.38);
    --overlay-mid: rgba(246, 247, 248, 0.28);
    --overlay-bottom: rgba(246, 247, 248, 0.43);
  }
}

.resource-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.resource-card h2 {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.resource-card p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.resource-links {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.resource-links__divider {
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0.62;
}

.resource-btn--inline {
  min-width: 132px;
}

@media (max-width: 640px) {
  .resource-links {
    gap: 10px;
  }

  .resource-btn--inline {
    min-width: 120px;
  }
}
