/* CSS Variables - Exact match to original */
:root {
  --font-size: 16px;
  --background: #ffffff;
  --foreground: var(--color-text-primary);
  --card: #ffffff;
  --card-foreground: var(--color-text-primary);
  --popover: #ffffff;
  --popover-foreground: var(--color-text-primary);
  --primary: var(--color-primary);
  --primary-foreground: #ffffff;
  --secondary: var(--color-link);
  --secondary-foreground: #ffffff;
  --muted: var(--color-muted);
  --muted-foreground: var(--color-text-secondary);
  --accent: var(--color-accent);
  --accent-foreground: #ffffff;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: var(--color-muted);
  --input: transparent;
  --input-background: #f3f3f5;
  --switch-background: #cbced4;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --ring: var(--color-primary);
  --radius: 0.625rem;
  
  /* Brand Colors - Semantic naming */
  --color-primary: #643190; /* Primary action/button color */
  --color-link: #306F8D; /* Links and secondary actions */
  --color-accent: #C35B28; /* Accent/highlight elements */
  --color-text-primary: #231F20; /* Primary text/headings */
  --color-text-secondary: #545555; /* Secondary text */
  --color-muted: #A7A9AC; /* Muted elements, placeholders */
  --color-base: #738738; /* Base/neutral color for backgrounds, flags, headlines */
  --color-alert: #B83632; /* Alert/important color for notable text, attention buttons */
  --color-trust: #1B5B99; /* Trust/confidence color for depth, sincerity elements */
  
  /* RGB values for rgba() support */
  --color-primary-rgb: 100, 49, 144;
  --color-link-rgb: 48, 111, 141;
  --color-accent-rgb: 195, 91, 40;
  --color-muted-rgb: 167, 169, 172;
  --color-base-rgb: 115, 135, 56;
  --color-alert-rgb: 184, 54, 50;
  --color-trust-rgb: 27, 91, 153;
  --destructive-rgb: 212, 24, 61;
  
  /* Gradients */
  --gradient-purple: linear-gradient(135deg, #1B5B99 0%, #306F8D 100%);
}

/* Base Styles - Exact match to original */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size);
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  line-height: 1.5;
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  line-height: inherit;
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
}

img, svg, video, canvas, audio, iframe, embed, object {
  vertical-align: middle;
  display: block;
}

img, video {
  max-width: 100%;
  height: auto;
}

button, input, select, optgroup, textarea {
  font: inherit;
  color: inherit;
  background-color: transparent;
  border-radius: 0;
}

button {
  cursor: pointer;
}

/* Skip Link - Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 0.75rem 1rem;
  text-decoration: none;
  font-weight: 600;
  z-index: 1000;
  border-radius: 0 0 0.5rem 0;
  clip-path: inset(100%);
  overflow: hidden;
}

.skip-link:focus {
  top: 0;
  clip-path: none;
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

/* Screen Reader Only - Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Container - Exact spacing match */
.container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

@media (min-width: 40rem) {
  .container {
    max-width: 40rem;
    padding: 0 1.5rem;
  }
}

@media (min-width: 48rem) {
  .container {
    max-width: 48rem;
  }
}

@media (min-width: 64rem) {
  .container {
    max-width: 64rem;
    padding: 0 2rem;
  }
}

@media (min-width: 80rem) {
  .container {
    max-width: 87rem;
  }
}

/* Header - Exact spacing match */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background-color: white;
  border-bottom: 1px solid rgba(var(--color-muted-rgb), 0.3);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  overflow: visible;
}

.header .container {
  position: relative;
}

.header-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 64rem) {
  .header-content {
    height: 5rem;
  }
}

.logo {
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo-image {
  width: 2.5rem;
  height: 2.5rem;
}

@media (min-width: 64rem) {
  .logo-image {
    width: 3rem;
    height: 3rem;
  }
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  margin-left: 0.75rem;
}

.logo-title {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 1.125rem;
  line-height: 1.75;
}

@media (min-width: 64rem) {
  .logo-title {
    font-size: 1.25rem;
    line-height: 1.75;
  }
}

.logo-subtitle {
  font-size: 0.75rem;
  background: linear-gradient(135deg, var(--color-link) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Header Navigation */
.header-nav {
  display: none;
  flex: 1;
  margin: 0 2rem;
}

@media (min-width: 48rem) {
  .header-nav {
    display: block;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.nav-item {
  display: flex;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
  border-radius: 0.5rem;
  white-space: nowrap;
  position: relative;
  min-height: 44px;
}

.nav-link:hover {
  color: var(--color-primary);
  background-color: rgba(var(--color-primary-rgb), 0.05);
}

.nav-link:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: static;
  flex: 1;
  justify-content: flex-end;
  overflow: visible;
}

/* Button Styles - Exact match */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  outline: none;
  min-height: 44px;
  box-sizing: border-box;
  max-width: 100%;
}

/* Allow buttons to shrink on mobile */
@media (max-width: 48rem) {
  .btn {
    min-width: 0;
    flex-shrink: 1;
  }
  
  .btn-action {
    width: 100%;
  }
}

.btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  padding: 0.5rem 1rem;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  border: 1px solid var(--color-link);
  color: var(--color-link);
  background-color: transparent;
  padding: 0.5rem 1rem;
}

.btn-outline:hover {
  background-color: rgba(var(--color-link-rgb), 0.05);
}

.btn-ghost {
  color: var(--color-text-secondary);
  background-color: transparent;
  padding: 0.5rem;
  border-radius: 0.5rem;
  min-width: 44px;
  min-height: 44px;
}

.btn-ghost:hover {
  color: var(--color-primary);
  background-color: rgba(var(--color-primary-rgb), 0.05);
}

.btn-search {
  padding: 0.5rem;
  border-radius: 0.5rem;
  min-width: 44px;
  min-height: 44px;
}

.btn-newsletter {
  background-color: var(--color-accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.btn-newsletter:hover {
  background-color: rgba(var(--color-accent-rgb), 0.9);
}

.btn-mobile-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

@media (min-width: 48rem) {
  .btn-mobile-menu {
    display: none;
  }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(35, 31, 32, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  position: fixed;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 22rem;
  height: 100%;
  background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15), 2px 0 8px rgba(0, 0, 0, 0.1);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  z-index: 101;
}

.mobile-menu-overlay.active .mobile-menu-content {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(var(--color-muted-rgb), 0.2);
  background-color: white;
}

.mobile-menu-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-logo-img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.mobile-menu-logo-text {
  display: flex;
  flex-direction: column;
}

.mobile-menu-logo-title {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 1.125rem;
  line-height: 1.2;
}

.mobile-menu-close {
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  min-width: 44px;
  min-height: 44px;
}

.mobile-menu-close:hover {
  color: var(--color-primary);
  background-color: rgba(var(--color-primary-rgb), 0.08);
}

.mobile-menu-close:active {
  transform: scale(0.95);
}

.mobile-nav {
  flex: 1;
  padding: 0.5rem 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav-item {
  border-bottom: 1px solid rgba(var(--color-muted-rgb), 0.15);
}

.mobile-nav-item:last-child {
  border-bottom: none;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.5rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  min-height: 44px;
}

.mobile-nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background-color: var(--color-primary);
  transition: width 0.2s ease;
}

.mobile-nav-link:hover::before,
.mobile-nav-link:focus::before {
  width: 4px;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
  color: var(--color-primary);
  background-color: rgba(var(--color-primary-rgb), 0.05);
}

.mobile-nav-link:active {
  background-color: rgba(var(--color-primary-rgb), 0.1);
}

.mobile-nav-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-text-secondary);
  transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-nav-link:hover .mobile-nav-icon,
.mobile-nav-link:focus .mobile-nav-icon {
  color: var(--color-primary);
  transform: scale(1.1);
}

.mobile-nav-link span {
  flex: 1;
}

.mobile-nav-link:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: -2px;
}

.mobile-nav-item-contact {
  border-top: 2px solid rgba(var(--color-muted-rgb), 0.2);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.mobile-nav-link-contact {
  background-color: rgba(var(--color-accent-rgb), 0.05);
  color: var(--color-accent);
  font-weight: 600;
}

.mobile-nav-link-contact:hover,
.mobile-nav-link-contact:focus {
  background-color: rgba(var(--color-accent-rgb), 0.1);
  color: var(--color-accent);
}

.mobile-nav-link-contact .mobile-nav-icon {
  color: var(--color-accent);
}

.btn-action {
  flex: 1;
  min-height: 44px;
  font-weight: 500;
  border-radius: 0.5rem;
  min-width: 0;
}

.btn-cta {
  width: 100%;
  background-color: var(--color-link);
  color: white;
  min-height: 44px;
  font-weight: 500;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.btn-cta:hover {
  background-color: rgba(var(--color-link-rgb), 0.9);
}

.btn-newsletter-footer {
  background-color: var(--color-link);
  color: white;
  padding: 0.5rem 1.5rem;
  min-height: 44px;
  font-weight: 500;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.btn-newsletter-footer:hover {
  background-color: rgba(var(--color-link-rgb), 0.9);
}

.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn-text {
  display: none;
}

@media (min-width: 40rem) {
  .btn-text {
    display: inline;
  }
}

/* Main Content - Exact spacing match */
.main {
  flex: 1;
  padding: 2rem 0;
}

/* Remove top padding on mobile for pages with full-width banners */
@media (max-width: 48rem) {
  .page-about .main,
  .browse-page .main {
    padding-top: 0;
  }
}

/* Breadcrumbs - Exact spacing match */
.breadcrumbs-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.breadcrumbs {
  margin-bottom: 2rem;
  flex: 1;
}

/* Hide breadcrumbs on mobile */
@media (max-width: 48rem) {
  .breadcrumbs {
    display: none;
  }
  
  .breadcrumbs-wrapper {
    justify-content: flex-end;
  }
  
  .btn-newsletter-breadcrumb {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
  
  .btn-newsletter-breadcrumb .btn-text {
    display: none;
  }
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  list-style: none;
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  color: var(--color-muted);
}

.breadcrumb-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: var(--color-primary);
}

.breadcrumb-current {
  color: var(--color-text-primary);
  font-weight: 500;
}

/* Page Title - Exact spacing match */
.page-title {
  margin-bottom: 3rem;
}

/* Resource detail page specific styling */
.resource-detail-page .page-title {
  margin-bottom: 2rem;
}

.resource-detail-page .title {
  letter-spacing: -0.02em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.title {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.25;
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (min-width: 64rem) {
  .title {
    font-size: 3rem;
    line-height: 1;
  }
}

.title-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.title-accent {
  height: 0.25rem;
  width: 4rem;
  background: linear-gradient(to right, var(--color-primary), var(--color-link));
  border-radius: 9999px;
}

.meta-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-secondary);
}

.meta-item {
  font-size: 0.875rem;
  font-weight: 500;
}

.meta-separator {
  width: 0.25rem;
  height: 0.25rem;
  background-color: var(--color-text-secondary);
  border-radius: 50%;
}

/* Mobile styles */
@media (max-width: 48rem) {
  /* Reduce title size on mobile for resource details */
  .title {
    font-size: 1.75rem; /* Reduced from 2.25rem */
  }
  
  /* Reduce page-title bottom margin on mobile */
  .page-title {
    margin-bottom: 2rem; /* Reduced from 3rem */
  }
  
  /* Adjust preview logo size on mobile */
  .preview-logo-image {
    max-height: 3.5rem;
    max-width: 10rem;
  }
  
  .preview-logo-container {
    padding: 0.375rem;
  }
}

/* Content Grid - Exact spacing match */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
  min-width: 0;
}

@media (min-width: 64rem) {
  .content-grid {
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
  }
}

.content-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

.content-sidebar {
  position: relative;
}

@media (min-width: 64rem) {
  .content-sidebar {
    position: sticky;
    top: 6rem;
  }
}

/* Resource Preview - Exact spacing match */
.resource-preview {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.preview-container {
  background-color: white;
  border: 1px solid rgba(var(--color-muted-rgb), 0.3);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  min-width: 0;
}

.preview-image-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.preview-image-link:hover {
  opacity: 0.95;
}

.preview-image-link:hover .preview-image {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.preview-image-container {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.preview-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
}

.preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent, transparent);
}

.preview-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.preview-logo {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

.preview-logo-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-logo-image {
  max-height: 4.5rem;
  max-width: 14rem;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.preview-info {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
}

.info-items {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: white;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
}

.info-item-full-width {
  flex: 1;
}

.info-icon {
  width: 1rem;
  height: 1rem;
}

/* YouTube Video Player Styles */
.youtube-video-container {
  position: relative;
  width: 100%;
}

.youtube-preview-wrapper {
  position: relative;
  width: 100%;
}

.youtube-preview-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.youtube-preview-link:hover .youtube-play-button-overlay {
  opacity: 1;
  transform: scale(1.05);
}

.youtube-preview-link:hover .preview-image {
  transform: scale(1.02);
}

.youtube-play-button-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
  cursor: pointer;
}

.youtube-play-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  pointer-events: auto;
  cursor: pointer;
}

.youtube-play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 1);
}

.youtube-play-button .play-icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  margin-left: 4px; /* Slight offset for visual centering of play icon */
}

.youtube-iframe-wrapper {
  position: relative;
  width: 100%;
  background: #000;
  display: none; /* Hidden by default, shown via JavaScript */
}

.youtube-iframe-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.youtube-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive adjustments for play button */
@media (max-width: 768px) {
  .youtube-play-button {
    width: 64px;
    height: 64px;
  }
  
  .youtube-play-button .play-icon {
    width: 36px;
    height: 36px;
  }
}

/* Badge Styles - Exact match */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  gap: 0.375rem;
}

.badge-primary {
  background-color: var(--color-primary);
  color: white;
  border: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.badge-outline {
  color: var(--foreground);
  border: 1px solid var(--border);
}

.badge-purple {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: rgba(var(--color-primary-rgb), 0.05);
}

.badge-teal {
  border-color: var(--color-link);
  color: var(--color-link);
  background-color: rgba(var(--color-link-rgb), 0.05);
}

.badge-orange {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: rgba(var(--color-accent-rgb), 0.05);
}

.badge-secondary {
  background-color: rgba(var(--color-muted-rgb), 0.1);
  color: var(--color-text-secondary);
  border-color: rgba(var(--color-muted-rgb), 0.2);
}

.badge-icon {
  width: 0.75rem;
  height: 0.75rem;
}

/* Resource Metadata - Exact spacing match */
.resource-metadata {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.metadata-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.metadata-title {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  color: var(--color-text-primary);
}

.metadata-subtitle {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  color: var(--color-text-primary);
  font-size: 0.875rem;
}

.metadata-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.metadata-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Resource Actions - Exact spacing match */
.resource-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.resource-actions .btn {
  box-sizing: border-box;
}

@media (min-width: 40rem) {
  .resource-actions {
    flex-direction: row;
  }
  
  .resource-actions .btn {
    flex: 1;
    min-width: 0;
  }
}

/* Help CTA - Exact spacing match */
.help-cta {
  background: linear-gradient(to bottom right, rgba(var(--color-link-rgb), 0.05), white, rgba(var(--color-primary-rgb), 0.05));
  border: 1px solid rgba(var(--color-link-rgb), 0.2);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.cta-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.cta-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(to bottom right, var(--color-link), var(--color-primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: white;
}

.cta-title {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.cta-description {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.625;
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
}

.cta-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.benefit-dot {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.benefit-purple {
  background-color: rgba(var(--color-primary-rgb), 0.1);
}

.benefit-purple::after {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--color-primary);
  border-radius: 50%;
}

.benefit-teal {
  background-color: rgba(var(--color-link-rgb), 0.1);
}

.benefit-teal::after {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--color-link);
  border-radius: 50%;
}

.benefit-orange {
  background-color: rgba(var(--color-accent-rgb), 0.1);
}

.benefit-orange::after {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--color-accent);
  border-radius: 50%;
}

.benefit-text {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.cta-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(var(--color-muted-rgb), 0.2);
}

.footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.footer-icon {
  width: 0.75rem;
  height: 0.75rem;
}

/* Resource Description - Exact spacing match */
.resource-description {
  margin-bottom: 4rem;
  margin-top: 2rem;
  position: relative;
  padding-left: 2rem;
}

.resource-description::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-link));
  border-radius: 2px;
}

.description-text {
  color: #4a5568;
  font-size: 1.0625rem;
  line-height: 1.75;
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
  max-width: 65rem;
  margin: 0;
}

@media (min-width: 64rem) {
  .description-text {
    font-size: 1.125rem;
    line-height: 1.875;
  }
  
  .resource-description {
    padding-left: 2.5rem;
  }
  
  .resource-description::before {
    width: 5px;
  }
}

/* Related Resources - Exact spacing match */
.related-resources {
  margin-top: 4rem;
}

.section-title {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
}

.resources-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.resource-card {
  background-color: white;
  border: 1px solid rgba(var(--color-muted-rgb), 0.5);
  border-radius: 0.75rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.resource-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.card-badge {
  background-color: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
  border-radius: 0.375rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.card-icon {
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.resource-card:hover .card-icon {
  color: var(--color-primary);
}

.card-title {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.resource-card:hover .card-title {
  color: var(--color-primary);
}

.card-description {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.625;
  margin-bottom: 1rem;
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* Footer - Exact spacing match */
.footer {
  background: linear-gradient(to bottom right, #f9fafb, white);
  border-top: 1px solid rgba(var(--color-muted-rgb), 0.3);
  margin-top: 5rem;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 48rem) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-company {
  max-width: 28rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo-image {
  width: 2.5rem;
  height: 2.5rem;
}

.footer-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-logo-text {
  margin-left: 0.75rem;
}

.footer-logo-title {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 1.125rem;
  line-height: 1.75;
}

.footer-logo-subtitle {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.footer-description {
  color: var(--color-text-secondary);
  line-height: 1.625;
  margin-bottom: 1.5rem;
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
}

.newsletter-signup {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-title {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  color: var(--color-text-primary);
}

.newsletter-description {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.footer-title {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--color-primary);
}

.footer-divider {
  height: 1px;
  background-color: var(--border);
  margin-bottom: 2rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 48rem) {
  .footer-bottom {
    flex-direction: row;
    gap: 0;
  }
}

.footer-copyright {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.copyright-separator {
  display: none;
}

@media (min-width: 48rem) {
  .copyright-separator {
    display: inline;
  }
}

.copyright-heart {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.heart-icon {
  width: 1rem;
  height: 1rem;
  color: var(--color-accent);
  fill: currentColor;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-label {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  margin-right: 0.5rem;
}

.social-link {
  color: var(--color-text-secondary);
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  color: var(--color-link);
  background-color: rgba(var(--color-link-rgb), 0.05);
}

/* Responsive Design - Exact match */
@media (max-width: 48rem) {
  /* Hide newsletter/contact button in header on mobile - it's in the mobile menu now */
  .btn-newsletter {
    display: none;
  }
}

/* Focus and Accessibility - Enhanced */
.btn:focus-visible,
a:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

/* Enhanced focus for interactive elements */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

/* Remove inner borders from search inputs - focus handled by wrapper */
.search-input:focus-visible,
.header-search-input:focus-visible {
  outline: none;
  border: none;
}

/* Focus for links */
a:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  text-decoration: underline;
}

/* Focus for cards and clickable elements */
.resource-card:focus-visible,
.featured-card-link:focus-visible,
.newest-card-link:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

/* Focus for filter checkboxes */
.filter-checkbox input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

/* Focus for view toggle buttons */
.view-btn:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

/* Focus for pagination links */
.pagination-link:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

/* Focus for social links */
.social-link:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

/* Focus for footer links */
.footer-link:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

/* Page Description */
.page-description {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}

.page-description .description-text {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  line-height: 1.625;
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
}

/* Why Organizations Reach Out Section */
.why-reach-out {
  margin-bottom: 4rem;
}

.why-reach-out .section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.info-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 48rem) {
  .info-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.info-card {
  background-color: white;
  border: 1px solid rgba(var(--color-muted-rgb), 0.3);
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.12);
  border-color: rgba(var(--color-primary-rgb), 0.2);
}

.info-card .card-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.1) 0%, rgba(var(--color-link-rgb), 0.1) 100%);
  color: var(--color-link);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: transform 0.2s ease;
}

.info-card:hover .card-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.15) 0%, rgba(var(--color-link-rgb), 0.15) 100%);
}

.info-card .card-title {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.info-card .card-description {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.625;
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
}

/* Contact Form Styles */
.contact-form-container {
  background-color: white;
  border: 1px solid rgba(var(--color-muted-rgb), 0.3);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}
.page-contact .page-title {
  background: var(--gradient-purple);
  color: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-contact .page-title .container {
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.page-contact .title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.2;
}

@media (min-width: 64rem) {
  .page-contact .title {
    font-size: 3.5rem;
  }
}

.page-contact .title-meta {
  max-width: 50rem;
  text-align: center;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: white;
}

.page-contact .title-meta .meta-item {
  color: rgba(255, 255, 255, 0.95);
}

.page-contact .title-accent {
  height: 0.375rem;
  width: 6rem;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  margin: 0 auto;
}

.page-contact .meta-info {
  justify-content: center;
}

.page-contact .meta-item {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  font-weight: 400;
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
}

@media (min-width: 48rem) {
  .page-contact .meta-item {
    font-size: 1.25rem;
  }
}



.form-header {
  margin-bottom: 2rem;
}

.form-title {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

.form-description {
  color: var(--color-text-secondary);
  line-height: 1.625;
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
}

.messages-container {
  margin-bottom: 1.5rem;
}

.message {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.message-success {
  background-color: rgba(34, 197, 94, 0.1);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.message-error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Contact Success Banner on Resource Detail Page */
.contact-success-banner {
  margin-bottom: 2rem;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-banner-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: rgba(34, 197, 94, 0.1);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 4px rgba(34, 197, 94, 0.1);
}

.success-banner-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: #16a34a;
  margin-top: 0.125rem;
}

.success-banner-message {
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.625;
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
}

.success-banner-message strong {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  color: #15803d;
  display: block;
  margin-bottom: 0.25rem;
}

.success-banner-close {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: #166534;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: -0.125rem;
  margin-right: -0.25rem;
}

.success-banner-close:hover {
  opacity: 1;
  background-color: rgba(34, 197, 94, 0.15);
  transform: scale(1.1);
}

.success-banner-close:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  opacity: 1;
}

.success-banner-close:active {
  transform: scale(0.95);
}

@media (min-width: 48rem) {
  .success-banner-content {
    padding: 1.25rem 1.5rem;
  }

  .success-banner-message {
    font-size: 1rem;
  }

  .success-banner-message strong {
    display: inline;
    margin-bottom: 0;
    margin-right: 0.5rem;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 40rem) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  color: var(--color-text-primary);
  font-size: 0.875rem;
}

.form-input,
.form-textarea,
.form-select {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(var(--color-muted-rgb), 0.5);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
  background-color: var(--input-background);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  cursor: pointer;
}

.form-error {
  display: block;
  color: var(--destructive);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

.form-error:empty {
  display: none;
}

.form-input:invalid:not(:focus):not(:placeholder-shown),
.form-textarea:invalid:not(:focus):not(:placeholder-shown),
.form-select:invalid:not(:focus) {
  border-color: var(--destructive);
}

.form-actions {
  margin-top: 0.5rem;
}

.btn-submit {
  background-color: var(--color-link);
  color: white;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.btn-submit:hover {
  background-color: rgba(var(--color-link-rgb), 0.9);
}

/* Contact Info Card Styles */
.contact-info-card,
.expectations-card {
  background-color: white;
  border: 1px solid rgba(var(--color-muted-rgb), 0.3);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.contact-info-card .card-title,
.expectations-card .card-title {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.detail-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-link);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  color: var(--color-text-primary);
  font-size: 0.875rem;
}

.detail-value {
  color: var(--color-link);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.detail-value:hover {
  color: var(--color-primary);
}

/* Expectations Card */
.expectations-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.expectation-item {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.625;
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
}

.expectation-item:last-child {
  margin-bottom: 0;
}

.expectation-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--color-accent);
  border-radius: 50%;
}

/* Thank You Page Styles */
.page-contact-thank-you .page-title {
  background: var(--gradient-purple);
  color: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-contact-thank-you .page-title .container {
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.page-contact-thank-you .title {
  font-size: 2.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.2;
}

@media (min-width: 64rem) {
  .page-contact-thank-you .title {
    font-size: 3rem;
  }
}

.page-contact-thank-you .title-meta {
  max-width: 50rem;
  text-align: center;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: white;
}

.page-contact-thank-you .title-meta .meta-item {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
}

@media (min-width: 48rem) {
  .page-contact-thank-you .title-meta .meta-item {
    font-size: 1.25rem;
  }
}

.page-contact-thank-you .title-accent {
  height: 0.375rem;
  width: 6rem;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  margin: 0 auto;
}

.page-contact-thank-you .meta-info {
  justify-content: center;
}

.thank-you-section {
  padding: 3rem 0 4rem;
}

.thank-you-card {
  max-width: 42rem;
  margin: 0 auto;
  background: linear-gradient(to bottom right, rgba(var(--color-link-rgb), 0.05), white, rgba(var(--color-primary-rgb), 0.05));
  border: 1px solid rgba(var(--color-link-rgb), 0.2);
  border-radius: 1rem;
  padding: 3rem 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  text-align: center;
}

@media (min-width: 48rem) {
  .thank-you-card {
    padding: 4rem 3rem;
  }
}

.thank-you-icon-wrapper {
  margin-bottom: 2rem;
}

.thank-you-icon {
  width: 5rem;
  height: 5rem;
  margin: 0 auto;
  background: linear-gradient(to bottom right, var(--color-link), var(--color-primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.3);
}

.thank-you-message {
  margin-bottom: 2.5rem;
}

.thank-you-title {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

@media (min-width: 48rem) {
  .thank-you-title {
    font-size: 2.25rem;
  }
}

.thank-you-description {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
}

@media (min-width: 48rem) {
  .thank-you-description {
    font-size: 1.125rem;
  }
}

.thank-you-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  background-color: rgba(var(--color-link-rgb), 0.08);
  border: 1px solid rgba(var(--color-link-rgb), 0.15);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 0 auto;
  max-width: 32rem;
}

.timeline-icon {
  flex-shrink: 0;
  color: var(--color-link);
  margin-top: 0.125rem;
}

.timeline-text {
  text-align: left;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.625;
  margin: 0;
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
}

.timeline-text strong {
  color: var(--color-text-primary);
  font-weight: 600;
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
}

.thank-you-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

@media (min-width: 40rem) {
  .thank-you-actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

.thank-you-actions .btn {
  min-width: 10rem;
  justify-content: center;
}

@media (min-width: 40rem) {
  .thank-you-actions .btn {
    flex: 0 1 auto;
  }
}

/* Social Links on Contact Page */
.social-intro {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.5;
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
}

.social-links-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-link);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(var(--color-link-rgb), 0.3);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
  min-height: 44px;
}

.social-link-contact:hover {
  background-color: rgba(var(--color-link-rgb), 0.05);
  border-color: var(--color-link);
  color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(var(--color-link-rgb), 0.1);
}

.social-link-contact:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.social-link-contact svg {
  flex-shrink: 0;
}

/* About Page Styles */
.page-about .page-title {
  background: var(--gradient-purple);
  color: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-about .page-title .container {
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.page-about .title {
  font-size: 2.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.2;
}

@media (min-width: 64rem) {
  .page-about .title {
    font-size: 3rem;
  }
}

.page-about .title-meta {
  max-width: 50rem;
  text-align: center;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: white;
}

.page-about .title-meta .meta-item {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
}

@media (min-width: 48rem) {
  .page-about .title-meta .meta-item {
    font-size: 1.25rem;
  }
}

.page-about .title-accent {
  height: 0.375rem;
  width: 6rem;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  margin: 0 auto;
}

.page-about .meta-info {
  justify-content: center;
}

/* Mission Section */
.mission-section {
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.05) 0%, rgba(var(--color-link-rgb), 0.05) 100%);
  padding: 5rem 0;
  margin-bottom: 5rem;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.mission-content {
  max-width: 60rem;
  margin: 0 auto;
  text-align: center;
}

.mission-title {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
}

@media (min-width: 64rem) {
  .mission-title {
    font-size: 2.5rem;
  }
}

.mission-text {
  font-size: 1.125rem;
  line-height: 1.875;
  color: var(--color-text-secondary);
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
}

@media (min-width: 64rem) {
  .mission-text {
    font-size: 1.25rem;
    line-height: 2;
  }
}

.about-section {
  margin-bottom: 6rem;
  padding: 5rem 0;
}

.what-we-do-section {
  background-color: white;
}

.values-section {
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.02) 0%, rgba(var(--color-link-rgb), 0.02) 100%);
  padding: 5rem 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  margin-bottom: 6rem;
}

.cta-section {
  padding: 5rem 0;
  margin-bottom: 4rem;
}

.about-section .container {
  margin: 0 auto;
  padding: 0 1rem;
}

.about-section .section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
}

.about-section .section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text-primary);
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  margin-bottom: 1rem;
}

@media (min-width: 64rem) {
  .about-section .section-title {
    font-size: 2.5rem;
  }
}

.about-section .section-description {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
}

.content-text {
  max-width: 50rem;
  margin: 0 auto;
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
}

.content-text p {
  margin-bottom: 1.5rem;
}

.content-text p:last-child {
  margin-bottom: 0;
}

/* Values Section */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 48rem) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 64rem) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  /* Handle 5 items: 3 in first row, 2 in second row centered */
  .values-grid-last-two {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .values-grid-last-two .value-card {
    flex: 0 1 calc(33.333% - 1rem);
    min-width: 280px;
  }
}

.value-card {
  background-color: white;
  border: 1px solid rgba(var(--color-muted-rgb), 0.3);
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.12);
}

.value-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.1) 0%, rgba(var(--color-link-rgb), 0.1) 100%);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: transform 0.2s ease;
}

.value-card:hover .value-icon {
  transform: scale(1.1);
}

.value-title {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.value-description {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.625;
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
}

.cta-card {
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.08) 0%, rgba(var(--color-link-rgb), 0.08) 100%);
  border: 2px solid rgba(var(--color-primary-rgb), 0.15);
  border-radius: 1rem;
  padding: 4rem 2.5rem;
  text-align: center;
  max-width: 50rem;
  margin: 0 auto;
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.06);
}

@media (min-width: 64rem) {
  .cta-card {
    padding: 4.5rem 3rem;
  }
}

.cta-title {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

@media (min-width: 64rem) {
  .cta-title {
    font-size: 2.5rem;
  }
}

.cta-description {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
}

.cta-card .btn {
  min-width: 10rem;
}

/* Homepage Styles */
.page-homepage .main {
  padding: 0;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.05) 0%, rgba(var(--color-link-rgb), 0.05) 100%);
  padding: 4rem 0 6rem;
  text-align: center;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.hero-content {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-title {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 64rem) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.hero-description {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 64rem) {
  .hero-description {
    font-size: 1.375rem;
  }
}

/* Search Container */
.search-container {
  max-width: 40rem;
  margin: 0 auto;
}

.search-form {
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background-color: white;
  border: 1px solid rgba(var(--color-muted-rgb), 0.3);
  border-radius: 0.75rem;
  padding: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input-wrapper:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 4px 6px -1px rgba(var(--color-primary-rgb), 0.1), 0 2px 4px -2px rgba(var(--color-primary-rgb), 0.1);
}

.search-icon {
  color: var(--color-muted);
  margin-left: 0.75rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 0.75rem 0.5rem;
  background: transparent;
  color: var(--color-text-primary);
}

.search-input::placeholder {
  color: var(--color-muted);
}

.search-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-left: 0.5rem;
}

.search-button:hover {
  background-color: rgba(var(--color-primary-rgb), 0.9);
}

.search-button-text {
  font-size: 0.875rem;
}

.search-button-icon {
  width: 1rem;
  height: 1rem;
}

/* Section Styles */
.featured-section,
.newest-section {
  padding: 4rem 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.featured-section {
  background-color: white;
}

.newest-section {
  background-color: white;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.section-title {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

@media (min-width: 64rem) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-description {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Featured Grid */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 87rem;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (min-width: 48rem) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.featured-card {
  background-color: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.featured-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.featured-image-container {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.featured-card:hover .featured-image {
  transform: scale(1.05);
}

.featured-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), transparent, transparent);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1rem;
}

.featured-badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background-color: var(--color-accent);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge-icon {
  width: 0.875rem;
  height: 0.875rem;
}

.featured-image-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.1), rgba(var(--color-link-rgb), 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
}

.placeholder-icon {
  opacity: 0.5;
}

.featured-content {
  padding: 1.5rem;
}

.featured-title {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.featured-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.featured-description {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.meta-project {
  background-color: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
}

.meta-date {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 500;
}

/* Newest Grid */
.newest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 87rem;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (min-width: 48rem) {
  .newest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .newest-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.newest-card {
  background-color: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.newest-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.newest-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.newest-image-container {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.newest-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.2s ease;
}

.newest-card:hover .newest-image {
  transform: scale(1.05);
}

.newest-image-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.1), rgba(var(--color-link-rgb), 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
}

.newest-content {
  padding: 1rem;
}

.newest-title {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.newest-subtitle {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.newest-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Section Footer */
.section-footer {
  text-align: center;
  margin-top: 3rem;
  padding: 0 2rem;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.05) 0%, rgba(var(--color-link-rgb), 0.05) 100%);
  padding: 4rem 0;
  text-align: center;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.cta-content {
  max-width: 50rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.cta-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--color-link), var(--color-primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
}

.cta-title {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

@media (min-width: 64rem) {
  .cta-title {
    font-size: 2.5rem;
  }
}

.cta-description {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 40rem) {
  .cta-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  min-width: 10rem;
  justify-content: center;
}

.btn-newsletter-cta {
  margin-top: 0.75rem;
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: transparent;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
  line-height: 1.4;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.btn-newsletter-cta:hover {
  background-color: rgba(var(--color-accent-rgb), 0.1);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Print Styles - Exact match */
@media print {
  .header,
  .footer,
  .btn,
  .help-cta {
    display: none;
  }
  
  .main {
    padding: 0;
  }
  
  .container {
    max-width: none;
    padding: 0;
  }
}

/* Browse/Search Interface Styles */
.browse-container {
  min-height: 100vh;
  background-color: #f8f9fa;
}

.browse-header {
  background: var(--gradient-purple);
  color: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.browse-header .container {
  margin: 0 auto;
  padding: 0 1rem;
}

.browse-header h1 {
  margin: 0 0 1.5rem 0;
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

@media (min-width: 64rem) {
  .browse-header h1 {
    font-size: 3rem;
  }
}

.search-section {
  max-width: 40rem;
  margin: 0 auto;
}

.search-form {
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background-color: white;
  border: 1px solid rgba(var(--color-muted-rgb), 0.3);
  border-radius: 0.75rem;
  padding: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input-wrapper:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 4px 6px -1px rgba(var(--color-primary-rgb), 0.1), 0 2px 4px -2px rgba(var(--color-primary-rgb), 0.1);
}

.search-icon {
  color: var(--color-muted);
  margin-left: 0.75rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 0.75rem 0.5rem;
  background: transparent;
  color: var(--color-text-primary);
}

.search-input::placeholder {
  color: var(--color-muted);
}

.search-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #667eea;
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-left: 0.5rem;
}

.search-button:hover {
  background-color: #5a6fd8;
}

.search-button-text {
  font-size: 0.875rem;
}

.search-button-icon {
  width: 1rem;
  height: 1rem;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
  display: none;
  margin-bottom: 1rem;
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #667eea;
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
  width: 100%;
  justify-content: center;
}

.filter-toggle-btn:hover {
  background: #5a6fd8;
}

.filter-toggle-btn.active {
  background: #4c63d2;
}

.filter-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.browse-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  max-width: 87rem;
  margin: 0 auto;
  padding: 0 1rem;
  min-height: calc(100vh - 200px);
  align-items: start;
}

.browse-main-content {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background-color: #f8f9fa;
  padding: 2rem 0;
}

/* Filters Sidebar */
.filters-sidebar {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  height: fit-content;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.filters-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.clear-filters {
  background: none;
  border: none;
  color: #667eea;
  cursor: pointer;
  font-size: 0.875rem;
  text-decoration: underline;
  padding: 0;
}

.clear-filters:hover {
  color: #5a6fd8;
}

.mobile-close-btn {
  display: none;
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.mobile-close-btn:hover {
  background: #f8f9fa;
  color: #495057;
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group h4 {
  margin: 0 0 0.75rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: white;
  font-size: 0.875rem;
  color: #495057;
}

.filter-select:focus {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.filter-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 0.25rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #495057;
  min-height: 32px;
}

.filter-checkbox input[type="checkbox"] {
  margin-right: 0.5rem;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  cursor: pointer;
}

.tag-filter-container {
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 0.5rem;
}

.tag-filter-container .filter-checkbox {
  margin-bottom: 0.25rem;
}

.tag-filter-container .filter-checkbox:last-child {
  margin-bottom: 0;
}

/* Results Section */
.results-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.results-count {
  font-size: 0.875rem;
  color: #6c757d;
}

.results-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-control label {
  font-size: 0.875rem;
  color: #495057;
  font-weight: 500;
}

.sort-select {
  padding: 0.5rem;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background: white;
  font-size: 0.875rem;
}

.sort-select:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-color: var(--color-primary);
}

.view-toggle {
  display: flex;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  overflow: hidden;
}

.view-btn {
  padding: 0.5rem;
  background: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.view-btn:hover {
  background: #f8f9fa;
}

.view-btn.active {
  background: #667eea;
  color: white;
}

/* Resources Grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.resources-grid.list-view {
  grid-template-columns: 1fr;
}

.resource-card {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Resource card as link */
.resource-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.resource-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.resource-card-link:focus {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.resource-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resource-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-placeholder {
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.resource-content {
  padding: 1rem;
}

.resource-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #2c3e50;
}

/* When card is a link, title doesn't need its own link styling */
.resource-card-link .resource-title {
  color: #2c3e50;
}

.resource-card-link:hover .resource-title {
  color: #667eea;
}

/* Legacy support for title links (if any remain) */
.resource-title a {
  color: #2c3e50;
  text-decoration: none;
}

.resource-title a:hover {
  color: #667eea;
}

.resource-subtitle {
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
  color: #6c757d;
  font-weight: 500;
}

.resource-card-description {
  margin: 0 0 1rem 0;
  font-size: 0.875rem;
  color: #495057;
  line-height: 1.5;
}

.resource-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.resource-project,
.resource-type {
  background: #e9ecef;
  color: #495057;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.resource-project {
  background: #d1ecf1;
  color: #0c5460;
}

.resource-tags {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.tag {
  background: #667eea;
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.tag-more {
  background: #6c757d;
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* List View */
.resources-grid.list-view .resource-card {
  display: flex;
  flex-direction: row;
}

.resources-grid.list-view .resource-image {
  width: 200px;
  height: 150px;
  flex-shrink: 0;
}

.resources-grid.list-view .resource-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}

.no-results-icon {
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-results h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  color: #495057;
}

.no-results p {
  margin: 0 0 1.5rem 0;
}

.clear-filters-btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.3s ease;
}

.clear-filters-btn:hover {
  background: #5a6fd8;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
}

.pagination-link {
  background: #667eea;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  transition: background-color 0.3s ease;
}

.pagination-link:hover {
  background: #5a6fd8;
}

.pagination-info {
  font-size: 0.875rem;
  color: #6c757d;
}

/* Search Corrections and Suggestions */
.search-correction {
  background: white;
  border: 3px solid var(--color-link);
  border-radius: 0.75rem;
  padding: 1.5rem 1.75rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: 0 6px 16px rgba(var(--color-link-rgb), 0.25);
}

.search-correction-text {
  font-size: 1.125rem;
  color: var(--color-text-primary);
  line-height: 1.6;
  font-weight: 600;
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
}

.search-correction-text strong {
  color: var(--color-link);
  font-weight: 700;
  font-size: 1.1em;
  background: rgba(var(--color-link-rgb), 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
}

.search-original-link {
  color: var(--color-link);
  text-decoration: underline;
  font-size: 0.9375rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 0.2s ease;
  padding: 0.25rem 0;
}

.search-original-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.search-suggestions {
  background: white;
  border: 2px solid var(--color-primary);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.2);
}

.search-suggestions-label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
}

.search-suggestions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.search-suggestion-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-link);
  text-decoration: underline;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: color 0.2s ease;
  white-space: nowrap;
  padding: 0.25rem 0;
}

.search-suggestion-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.search-query-indicator {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-weight: 400;
}

.no-results-suggestions {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(var(--color-muted-rgb), 0.3);
}

.no-results-suggestions p {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: var(--color-text-primary);
  font-weight: 600;
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
}

.suggestion-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.suggestion-link {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.75rem;
  background: var(--color-link);
  color: white;
  border: 2px solid var(--color-link);
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 3px 6px rgba(var(--color-link-rgb), 0.3);
}

.suggestion-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(var(--color-primary-rgb), 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .browse-content {
    grid-template-columns: 250px 1fr;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .mobile-filter-toggle {
    display: block;
  }
  
  .browse-main-content {
    padding: 1rem 0;
  }
  
  .browse-content {
    grid-template-columns: 1fr;
    gap: 1rem;
    min-height: auto;
    padding: 0 1rem;
  }
  
  .filters-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    transition: left 0.3s ease;
    border-radius: 0;
    order: 2;
  }
  
  .filters-sidebar.mobile-open {
    left: 0;
  }
  
  .mobile-close-btn {
    display: block;
  }
  
  .results-section {
    order: 1;
  }
  
  .results-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .results-controls {
    justify-content: space-between;
  }
  
  .resources-grid {
    grid-template-columns: 1fr;
  }
  
  .resources-grid.list-view .resource-card {
    flex-direction: column;
  }
  
  .resources-grid.list-view .resource-image {
    width: 100%;
    height: 200px;
  }
}

/* Header Search Container (inline expandable) */
.header-search-container {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  opacity: 0;
  visibility: hidden;
  overflow-x: hidden;
  overflow-y: visible;
  transition: width 0.3s ease, opacity 0.3s ease, visibility 0.3s ease, left 0.3s ease, right 0.3s ease, transform 0.3s ease;
  z-index: 200;
  height: 2.75rem;
}

.header-search-container.active {
  position: absolute;
  right: 0;
  top: 50%;
  width: 30rem;
  min-width: 20rem;
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
  overflow: visible;
}

.header-search-form {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.header-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background-color: white;
  border: 1px solid rgba(var(--color-muted-rgb), 0.3);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  width: 100%;
}

.header-search-input-wrapper:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 4px 8px rgba(var(--color-primary-rgb), 0.2);
}

.header-search-input-wrapper .search-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-text-secondary);
  pointer-events: none;
  margin-right: 0.625rem;
}

.header-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.9375rem;
  color: var(--color-text-primary);
  background: transparent;
  padding: 0;
  min-width: 0;
  line-height: 1.5;
}

.header-search-input::placeholder {
  color: var(--color-muted);
}

.header-search-close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  border-radius: 0.25rem;
  transition: background-color 0.2s ease, color 0.2s ease;
  margin-left: 0.625rem;
  padding: 0;
}

.header-search-close svg {
  width: 1.125rem;
  height: 1.125rem;
}

.header-search-close:hover {
  background-color: rgba(var(--color-muted-rgb), 0.1);
  color: var(--color-text-primary);
}

/* Ensure autocomplete dropdown appears below header search */
.header-search-input-wrapper {
  position: relative;
  z-index: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .header-search-container {
    height: 2.5rem;
  }
  
  .header-search-container.active {
    width: calc(100vw - 2rem);
    min-width: auto;
    max-width: calc(100vw - 2rem);
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
  }
  
  .header-search-input {
    font-size: 1rem; /* Prevent zoom on iOS */
  }
  
  .header-search-input-wrapper {
    padding: 0.375rem 0.625rem;
  }
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.5rem;
  background: white;
  border: 1px solid rgba(var(--color-muted-rgb), 0.3);
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  max-height: 20rem;
  overflow-y: auto;
  z-index: 201;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.autocomplete-item {
  display: block;
  padding: 0.875rem 1.25rem;
  color: var(--color-text-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--color-muted-rgb), 0.1);
  transition: background-color 0.15s ease;
  cursor: pointer;
  text-align: left;
}

.autocomplete-item:first-child {
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}

.autocomplete-item:last-child {
  border-bottom: none;
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background-color: rgba(var(--color-link-rgb), 0.08);
}

.autocomplete-item:focus {
  outline: 2px solid var(--color-link);
  outline-offset: -2px;
}

.autocomplete-item-content {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  text-align: left;
}

.autocomplete-item-image {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: rgba(var(--color-muted-rgb), 0.1);
}

.autocomplete-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.autocomplete-item-image-placeholder {
  background-color: rgba(var(--color-muted-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.autocomplete-item-image-placeholder::after {
  content: '';
  width: 1.5rem;
  height: 1.5rem;
  background-color: rgba(var(--color-muted-rgb), 0.3);
  border-radius: 0.25rem;
}

.autocomplete-item-main {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.autocomplete-item-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.autocomplete-item-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

.autocomplete-item-type {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background-color: rgba(var(--color-muted-rgb), 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.autocomplete-item-description {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
  margin-top: 0.125rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.autocomplete-item:hover .autocomplete-item-title,
.autocomplete-item.active .autocomplete-item-title {
  color: var(--color-link);
}

.autocomplete-item:hover .autocomplete-item-type,
.autocomplete-item.active .autocomplete-item-type {
  background-color: rgba(var(--color-link-rgb), 0.15);
  color: var(--color-link);
}

/* Ensure search input wrapper can contain dropdown */
.search-input-wrapper {
  position: relative;
}

/* Scrollbar styling for autocomplete dropdown */
.autocomplete-dropdown::-webkit-scrollbar {
  width: 8px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
  background: rgba(var(--color-muted-rgb), 0.1);
  border-radius: 0.75rem;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
  background: rgba(var(--color-muted-rgb), 0.3);
  border-radius: 0.75rem;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--color-muted-rgb), 0.5);
}

/* Newsletter Modal Styles */
.newsletter-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(35, 31, 32, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.newsletter-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.newsletter-modal-content {
  position: relative;
  width: 100%;
  max-width: 42rem;
  max-height: 90vh;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.newsletter-modal-overlay.active .newsletter-modal-content {
  transform: scale(1);
}

.newsletter-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(var(--color-muted-rgb), 0.2);
  background-color: white;
  flex-shrink: 0;
}

.newsletter-modal-title {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.3;
}

.newsletter-modal-close {
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  min-width: 44px;
  min-height: 44px;
  margin-left: 1rem;
  flex-shrink: 0;
}

.newsletter-modal-close:hover {
  color: var(--color-primary);
  background-color: rgba(var(--color-primary-rgb), 0.08);
}

.newsletter-modal-close:active {
  transform: scale(0.95);
}

.newsletter-modal-close:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.newsletter-modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.newsletter-embed {
  width: 100%;
}

.newsletter-embed iframe {
  width: 100%;
  min-height: 400px;
  border: none;
  border-radius: var(--radius);
}

/* Mailchimp Form Styles */
.newsletter-embed #mc_embed_signup {
  background: transparent;
  width: 100%;
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
}

.newsletter-embed #mc_embed_signup_scroll {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.newsletter-embed #mc_embed_signup_scroll > h2 {
  display: none;
}

.newsletter-embed .indicates-required {
  display: none;
}

.newsletter-embed .asterisk {
  color: var(--color-alert);
  font-weight: 600;
  margin-right: 0.25rem;
}

.newsletter-embed .mc-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0;
}

.newsletter-embed .mc-field-group label {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  color: var(--color-text-primary);
  font-size: 0.875rem;
  margin-bottom: 0;
  display: block;
}

.newsletter-embed .mc-field-group input[type="text"],
.newsletter-embed .mc-field-group input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(var(--color-muted-rgb), 0.5);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
  background-color: var(--input-background);
  color: var(--color-text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.newsletter-embed .mc-field-group input[type="text"]:focus,
.newsletter-embed .mc-field-group input[type="email"]:focus {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}

.newsletter-embed .mc-field-group input[type="text"]:invalid:not(:focus):not(:placeholder-shown),
.newsletter-embed .mc-field-group input[type="email"]:invalid:not(:focus):not(:placeholder-shown) {
  border-color: var(--destructive);
}

.newsletter-embed .mc-field-group input.mce_inline_error {
  border-color: var(--destructive);
  background-color: rgba(var(--destructive-rgb), 0.05);
}

.newsletter-embed .mce_inline_error {
  display: block;
  color: var(--destructive);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-weight: 500;
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
}

.newsletter-embed .mce_inline_error[for] {
  display: block;
}

.newsletter-embed #mce-responses {
  margin: 1rem 0;
}

.newsletter-embed .response {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Avenir', 'Garamond', system-ui, -apple-system, sans-serif;
  margin-bottom: 0.75rem;
}

.newsletter-embed #mce-error-response {
  background-color: rgba(239, 68, 68, 0.1);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.newsletter-embed #mce-success-response {
  background-color: rgba(34, 197, 94, 0.1);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.newsletter-embed .clear {
  margin-top: 1rem;
}

.newsletter-embed .button,
.newsletter-embed input[type="submit"] {
  background-color: var(--color-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  min-height: 44px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.newsletter-embed .button:hover,
.newsletter-embed input[type="submit"]:hover {
  background-color: rgba(var(--color-primary-rgb), 0.9);
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.15);
}

.newsletter-embed .button:focus,
.newsletter-embed input[type="submit"]:focus {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.newsletter-embed .button:active,
.newsletter-embed input[type="submit"]:active {
  transform: scale(0.98);
}

/* Hide Mailchimp's default styles that might conflict */
.newsletter-embed #mc_embed_signup form {
  margin: 0;
  padding: 0;
}

.newsletter-embed #mc_embed_signup .mc-field-group input.text.valid {
  border-color: rgba(var(--color-muted-rgb), 0.5);
}

/* Responsive adjustments for newsletter modal */
@media (max-width: 768px) {
  .newsletter-modal-content {
    max-width: 100%;
    max-height: 95vh;
    margin: 0.5rem;
  }

  .newsletter-modal-header {
    padding: 1.25rem 1.5rem;
  }

  .newsletter-modal-title {
    font-size: 1.25rem;
  }

  .newsletter-modal-body {
    padding: 1.5rem;
  }

  .newsletter-embed iframe {
    min-height: 300px;
  }
}

/* Contact Modal Styles */
.contact-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(35, 31, 32, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.contact-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.contact-modal-content {
  position: relative;
  width: 100%;
  max-width: 42rem;
  max-height: 90vh;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.contact-modal-overlay.active .contact-modal-content {
  transform: scale(1);
}

.contact-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(var(--color-muted-rgb), 0.2);
  background-color: white;
  flex-shrink: 0;
}

.contact-modal-title {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.3;
}

.contact-modal-close {
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  min-width: 44px;
  min-height: 44px;
  margin-left: 1rem;
  flex-shrink: 0;
}

.contact-modal-close:hover {
  color: var(--color-primary);
  background-color: rgba(var(--color-primary-rgb), 0.08);
}

.contact-modal-close:active {
  transform: scale(0.95);
}

.contact-modal-close:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.contact-modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.contact-modal-body .contact-form-container {
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  margin-bottom: 0;
}

.contact-modal-body .form-header {
  margin-bottom: 1.5rem;
}

.contact-modal-body .form-title {
  display: none;
}

/* Responsive adjustments for contact modal */
@media (max-width: 768px) {
  .contact-modal-content {
    max-width: 100%;
    max-height: 95vh;
    margin: 0.5rem;
  }

  .contact-modal-header {
    padding: 1.25rem 1.5rem;
  }

  .contact-modal-title {
    font-size: 1.25rem;
  }

  .contact-modal-body {
    padding: 1.5rem;
  }
}

