/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESOURCES PAGE & CATEGORY NAVIGATION DESIGN SYSTEM
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

:root {
  --res-green-primary: #059669;
  --res-green-hover: #047857;
  --res-green-light: #10b981;
  --res-green-mint: #34d399;
  --res-cyan-accent: #2dd4bf;
  --res-cyan-light: #38bdf8;
  --res-dark-navy: #042638;
  --res-navy-deep: #031826;
  --res-navy-card: #083c54;
  --res-text-dark: #0f172a;
  --res-text-muted: #64748b;
  --res-bg-light: #f8fafc;
  --res-border-light: #e2e8f0;
  --font-heading: 'Sora', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
}

/* 1. Hero Section */
.res-hero-section {
  position: relative;
  background-color: #031826;
  color: #ffffff;
  padding: 80px 24px;
  min-height: 590px;
  height: 590px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
}

.res-hero-fullbleed-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  z-index: 1;
}

.res-hero-fullbleed-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(3, 24, 38, 0.94) 0%,
    rgba(3, 24, 38, 0.85) 40%,
    rgba(3, 24, 38, 0.6) 65%,
    rgba(3, 24, 38, 0.3) 85%,
    rgba(3, 24, 38, 0.2) 100%
  );
  pointer-events: none;
}

.res-hero-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: linear-gradient(to top, rgba(3, 24, 38, 0.9), transparent);
  z-index: 2;
  pointer-events: none;
}

.res-hero-container {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 3;
  box-sizing: border-box;
}

.res-hero-content {
  max-width: 720px;
}

.res-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--res-cyan-light);
  margin-bottom: 20px;
}

.res-breadcrumb a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.res-breadcrumb a:hover {
  color: #ffffff;
}

.res-hero-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--res-green-mint);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.res-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
}

.res-hero-title .gradient-text,
.res-hero-title .gradient-green {
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #10b981;
}

.res-hero-desc {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.95);
  margin-bottom: 20px;
  max-width: 680px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

.res-hero-accent-bar {
  width: 48px;
  height: 4px;
  background: #0284c7;
  border-radius: 2px;
  margin-bottom: 24px;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.7);
}

.res-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-res-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #059669;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 14px 28px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(5, 150, 105, 0.45);
  transition: all 0.25s ease;
}

.btn-res-primary:hover {
  background: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
}

@media (max-width: 991px) {
  .res-hero-section {
    min-height: 520px;
    padding: 60px 20px;
  }
  .res-hero-fullbleed-overlay {
    background: linear-gradient(
      180deg,
      rgba(3, 24, 38, 0.9) 0%,
      rgba(3, 24, 38, 0.85) 100%
    );
  }
}

.res-hero-card {
  background: rgba(4, 38, 56, 0.85);
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(45, 212, 191, 0.2);
  width: 100%;
  max-width: 480px;
}

.res-hero-img-box {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
}

.res-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.res-floating-tags-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.res-floating-tag-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* 2. Section 1: Resource Categories ("Find What You Need") */
.res-categories-section {
  padding: 96px 24px;
  background: #ffffff;
}

.res-categories-container {
  max-width: 1360px;
  margin: 0 auto;
}

.res-categories-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 32px;
}

.res-section-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--res-green-primary);
  margin-bottom: 12px;
}

.res-section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--res-text-dark);
}

.res-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.res-category-card {
  background: #f8fafc;
  border: 1px solid var(--res-border-light);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.res-category-card:hover {
  background: #ffffff;
  border-color: var(--res-green-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.res-category-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #ecfdf5;
  color: var(--res-green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.res-category-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--res-text-dark);
  margin-bottom: 6px;
}

.res-category-desc {
  font-size: 0.875rem;
  color: var(--res-text-muted);
  line-height: 1.6;
}

.res-category-link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--res-green-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

/* 3. Section 2: Featured Resources (Publications Grid) */
.res-featured-section {
  padding: 96px 24px;
  background: var(--res-bg-light);
}

.res-featured-container {
  max-width: 1360px;
  margin: 0 auto;
}

.res-featured-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 32px;
}

.res-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.res-featured-card {
  background: #ffffff;
  border: 1px solid var(--res-border-light);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  text-decoration: none;
}

.res-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--res-green-light);
}

.res-card-thumb-mock {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #083c54 0%, #042638 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  color: #ffffff;
}

.res-card-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--res-green-mint);
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 3px 8px;
  border-radius: 6px;
  width: fit-content;
}

.res-card-content {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.res-card-title {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--res-text-dark);
  line-height: 1.35;
}

.res-card-summary {
  font-size: 0.8125rem;
  color: var(--res-text-muted);
  line-height: 1.5;
}

.res-card-meta {
  padding: 14px 18px;
  border-top: 1px solid var(--res-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* 4. Section 3: Tools & Templates vs. Events (Split 50/50) */
.res-split-section {
  padding: 96px 24px;
  background: #ffffff;
}

.res-split-container {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.res-split-panel {
  background: #f8fafc;
  border: 1px solid var(--res-border-light);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.res-panel-header {
  margin-bottom: 24px;
}

.res-panel-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--res-text-dark);
  margin-bottom: 6px;
}

.res-panel-sub {
  font-size: 0.875rem;
  color: var(--res-text-muted);
}

/* Tools List */
.res-tools-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.res-tool-item {
  background: #ffffff;
  border: 1px solid var(--res-border-light);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  text-decoration: none;
}

.res-tool-item:hover {
  border-color: var(--res-green-light);
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.res-tool-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.res-tool-icon {
  font-size: 1.25rem;
}

.res-tool-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--res-text-dark);
}

.res-tool-btn {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--res-green-primary);
}

/* Events List */
.res-events-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.res-event-item {
  background: #ffffff;
  border: 1px solid var(--res-border-light);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.res-event-item:hover {
  border-color: var(--res-green-light);
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.res-event-date-badge {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
  min-width: 60px;
  flex-shrink: 0;
}

.res-event-day {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--res-green-primary);
  line-height: 1;
}

.res-event-month {
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--res-green-hover);
  text-transform: uppercase;
}

.res-event-details {
  flex-grow: 1;
}

.res-event-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--res-text-dark);
  margin-bottom: 4px;
}

.res-event-meta {
  font-size: 0.75rem;
  color: var(--res-text-muted);
}

/* 5. Section 4: Stay Updated Newsletter Banner */
.res-newsletter-section {
  padding: 0 24px 80px 24px;
  background: #ffffff;
}

.res-newsletter-box {
  max-width: 1360px;
  margin: 0 auto;
  background: linear-gradient(135deg, #042638 0%, #083c54 60%, #059669 100%);
  border-radius: 20px;
  padding: 48px 40px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
  box-shadow: 0 15px 35px rgba(4, 38, 56, 0.25);
}

.res-newsletter-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff !important;
  margin-bottom: 12px;
}

.res-newsletter-desc {
  font-size: 0.9375rem;
  color: #cbd5e1 !important;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 540px;
}

.res-form-row {
  display: flex;
  gap: 12px;
  max-width: 500px;
}

.res-input-field {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  padding: 12px 20px;
  color: #ffffff;
  font-size: 0.875rem;
  outline: none;
}

.res-input-field::placeholder {
  color: #94a3b8;
}

.res-input-field:focus {
  border-color: var(--res-green-mint);
  background: rgba(255, 255, 255, 0.18);
}
