/* ===============================================
   RESOURCES PAGE - HIGH-END MINIMAL DESIGN
   =============================================== */

/* === Typography & Base === */
.resources-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  color: #0a0e13;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.resources-hero .subtitle {
  font-size: 18px;
  color: #64748b;
  margin: 12px 0 0 0;
  font-weight: 400;
  line-height: 1.5;
}

/* === Hero Section === */
.resources-hero {
  padding: 80px 0 40px;
  background: #f6f6f8;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 800px;
}

.hero-text {
  text-align: left;
}

.hero-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* === Search === */
.resources-search {
  width: 100%;
  position: relative;
}

.resources-search .search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  padding: 0 20px;
  transition: all 0.2s ease;
  /* Ensure no duplicate appearance */
  z-index: 1;
}

.resources-search .search-input-wrapper:focus-within {
  border-color: #0d5c63;
  box-shadow: 0 0 0 3px rgba(13, 92, 99, 0.1);
}

.resources-search .search-icon {
  color: #94a3b8;
  margin-right: 12px;
  flex-shrink: 0;
}

.resources-search .search-input-wrapper input {
  border: none;
  background: transparent;
  padding: 16px 0;
  font-size: 16px;
  color: #1e293b;
  width: 100%;
  outline: none;
  /* Prevent browser styling that might cause duplication */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-shadow: none;
  margin: 0;
}

.resources-search .search-input-wrapper input::placeholder {
  color: #94a3b8;
}

/* === Filter Chips === */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  background: #ffffff;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.chip:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.chip.active,
.chip[aria-pressed="true"] {
  background: #0d5c63;
  border-color: #0d5c63;
  color: #ffffff;
}

/* === Featured Resource === */
.featured-resource {
  padding: 40px 0;
  background: #f6f6f8;
}

.featured-header {
  margin-bottom: 24px;
}

.featured-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: #0a0e13;
  margin: 0;
  letter-spacing: -0.01em;
}

.featured-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  padding: 32px;
  transition: all 0.2s ease;
}

.featured-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.featured-visual {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.resource-icon {
  width: 48px;
  height: 48px;
  background: #f1f5f9;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d5c63;
  flex-shrink: 0;
}

.featured-content {
  min-width: 0;
}

.featured-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.resource-type,
.resource-category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 50px;
  background: #f1f5f9;
  color: #64748b;
}

.featured-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #0a0e13;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.featured-content p {
  font-size: 16px;
  color: #64748b;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.featured-actions {
  display: flex;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #0d5c63;
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: #0b4e54;
  transform: translateY(-1px);
}

.btn-primary svg {
  flex-shrink: 0;
}

/* === Resources Grid === */
.resources-grid {
  padding: 40px 0 60px;
  background: #f6f6f8;
}

.grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.grid-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: #0a0e13;
  margin: 0;
  letter-spacing: -0.01em;
}

.results-count {
  font-size: 14px;
  color: #64748b;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.resource-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  padding: 24px;
  transition: all 0.2s ease;
}

.resource-item:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.resource-item[data-hidden="true"] {
  display: none;
}

.resource-header {
  margin-bottom: 16px;
}

.resource-meta {
  display: flex;
  gap: 6px;
}

.resource-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0a0e13;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.resource-content p {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.resource-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #f8fafc;
  color: #475569;
  text-decoration: none;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.btn-secondary svg {
  flex-shrink: 0;
}

/* === CTA Section === */
.cta-simple {
  padding: 40px 0 60px;
  text-align: center;
  background: #f6f6f8;
}

.cta-simple p {
  font-size: 16px;
  color: #64748b;
  margin: 0;
}

.cta-simple .link {
  color: #0d5c63;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.cta-simple .link:hover {
  border-bottom-color: #0d5c63;
}

/* === Responsive Design === */
/* Breadcrumb override for this page */
body[data-page="resources"] .breadcrumb-container {
  background-color: #f6f6f8;
  margin-top: 30px;
}

@media (max-width: 768px) {
  body[data-page="resources"] .breadcrumb-container {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .resources-hero {
    padding: 60px 0 32px;
  }
  
  .hero-content {
    gap: 32px;
  }
  
  .filter-chips {
    justify-content: center;
  }
  
  .featured-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }
  
  .featured-visual {
    justify-content: flex-start;
  }
  
  .resource-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .resource-item {
    padding: 20px;
  }
  
  .grid-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .resources-hero {
    padding: 40px 0 24px;
  }
  
  .hero-content {
    gap: 24px;
  }
  
  .featured-card {
    padding: 20px;
    border-radius: 24px;
  }
  
  .resource-item {
    border-radius: 24px;
  }
  
  .search-input-wrapper {
    border-radius: 24px;
  }
  
  .chip {
    border-radius: 24px;
  }
  
  .btn-primary,
  .btn-secondary {
    border-radius: 24px;
  }
}