/**
 * Emissio Projects - Public Styles
 * Uses Pagelayer theme color variables
 */

/* ===================================
   DESIGN SYSTEM VARIABLES
   =================================== */

:root {
    /* Spacing scale */
    --ep-space-xs: 0.25rem;
    --ep-space-sm: 0.5rem;
    --ep-space-md: 1rem;
    --ep-space-lg: 1.5rem;
    --ep-space-xl: 2rem;
    --ep-space-2xl: 3rem;
    --ep-space-3xl: 4rem;

    /* Border radius */
    --ep-radius-sm: 4px;
    --ep-radius-md: 8px;
    --ep-radius-lg: 12px;
    --ep-radius-xl: 16px;
    --ep-radius-2xl: 24px;
    --ep-radius-full: 9999px;

    /* Shadows */
    --ep-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --ep-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --ep-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --ep-shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);
    --ep-shadow-hover: 0 12px 32px rgba(140, 198, 63, 0.2);

    /* Colors (using Pagelayer + fallbacks) */
    --ep-primary: var(--pagelayer-color-primary, #8cc63f);
    --ep-primary-dark: #6fa830;
    --ep-primary-light: rgba(140, 198, 63, 0.1);
    --ep-primary-rgb: 140, 198, 63;
    --ep-text: var(--pagelayer-color-text, #1d1d1d);
    --ep-text-muted: #666;
    --ep-text-light: #888;
    --ep-border: #e5e7eb;
    --ep-border-light: #f0f0f0;
    --ep-bg: #fff;
    --ep-bg-subtle: #f9fafb;
    --ep-bg-muted: #f5f5f5;

    /* Typography */
    --ep-font-family: var(--pagelayer-font-primary-font-family, 'Open Sans'), sans-serif;
    --ep-line-height-tight: 1.25;
    --ep-line-height-base: 1.5;
    --ep-line-height-relaxed: 1.75;

    /* Transitions */
    --ep-transition-fast: 0.15s ease;
    --ep-transition-base: 0.25s ease;
    --ep-transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Projects Heading */
.emissio-projects-heading {
  margin-bottom: var(--ep-space-3xl);
}
.emissio-projects-main-heading {
  color: var(--ep-primary);
  font-family: var(--ep-font-family);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 var(--ep-space-sm) 0;
  padding: 0;
  border: none;
  display: block;
  line-height: var(--ep-line-height-tight);
  letter-spacing: -0.5px;
}

/* Projects Preamble */
.emissio-projects-preamble {
  margin-bottom: var(--ep-space-3xl);
  font-size: 1.1rem;
  line-height: var(--ep-line-height-relaxed);
  color: var(--ep-text-muted);
  max-width: 900px;
}
.emissio-projects-preamble p {
  margin-bottom: 1.2em;
}
.emissio-projects-preamble p:last-child {
  margin-bottom: 0;
}

/* ===================================
   GRID LAYOUT
   =================================== */

.emissio-projects-grid {
  display: grid;
  gap: var(--ep-space-2xl);
  margin: var(--ep-space-3xl) 0;
}
.emissio-projects-grid[data-columns="1"] { grid-template-columns: 1fr; }
.emissio-projects-grid[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.emissio-projects-grid[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.emissio-projects-grid[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .emissio-projects-grid[data-columns="3"],
  .emissio-projects-grid[data-columns="4"] {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--ep-space-xl);
  }
}
@media (max-width: 768px) {
  .emissio-projects-grid {
    grid-template-columns: 1fr !important;
    gap: var(--ep-space-xl);
  }
}
@media (max-width: 480px) {
  .emissio-projects-grid {
    gap: var(--ep-space-lg);
    margin: var(--ep-space-xl) 0;
  }
}

.emissio-projects-grid-item {
  background: var(--ep-bg);
  border-radius: var(--ep-radius-lg);
  overflow: hidden;
  box-shadow: var(--ep-shadow-md);
  transition: var(--ep-transition-slow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.emissio-projects-grid-item:hover {
  box-shadow: var(--ep-shadow-hover);
  transform: translateY(-8px);
}

.project-grid-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-grid-thumbnail {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(178,216,125,0.8) 0%, var(--ep-primary) 100%);
}

.project-grid-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--ep-transition-slow);
}

.project-grid-link:hover .project-grid-thumbnail img {
  transform: scale(1.1);
}

.project-status-badge {
  position: absolute;
  top: var(--ep-space-md);
  right: var(--ep-space-md);
  padding: var(--ep-space-sm) var(--ep-space-md);
  color: #fff;
  border-radius: var(--ep-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--ep-shadow-sm);
  z-index: 2;
}

.project-grid-content {
  padding: var(--ep-space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.project-sector-badge {
  display: inline-block;
  padding: var(--ep-space-xs) var(--ep-space-md);
  background: var(--ep-bg-muted);
  color: var(--ep-text-muted);
  border-radius: var(--ep-radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: var(--ep-space-md);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  align-self: flex-start;
}

.project-grid-title {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  font-weight: 700;
  color: var(--ep-text);
  margin: 0 0 var(--ep-space-md) 0;
  line-height: var(--ep-line-height-tight);
  transition: var(--ep-transition-fast);
}

.project-grid-link:hover .project-grid-title {
  color: var(--ep-primary);
}

.project-grid-client {
  color: var(--ep-text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--ep-space-sm);
  line-height: var(--ep-line-height-base);
}

.project-grid-period {
  color: var(--ep-text-light);
  font-size: 0.9rem;
  margin-bottom: var(--ep-space-lg);
  font-weight: 500;
}

.project-grid-excerpt {
  color: var(--ep-text-muted);
  font-size: 0.95rem;
  line-height: var(--ep-line-height-relaxed);
  margin-bottom: var(--ep-space-lg);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(1.75em * 3);
  min-height: calc(1.75em * 3);
}

.project-grid-read-more {
  color: var(--ep-primary);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: var(--ep-space-xs);
  transition: var(--ep-transition-base);
  margin-top: auto;
}

.project-grid-read-more::after {
  content: '→';
  transition: var(--ep-transition-fast);
  display: inline-block;
}

.project-grid-link:hover .project-grid-read-more {
  color: var(--ep-primary-dark);
  gap: var(--ep-space-sm);
}

.project-grid-link:hover .project-grid-read-more::after {
  transform: translateX(4px);
}

@media (max-width: 480px) {
  .project-grid-content {
    padding: var(--ep-space-lg);
  }
  .project-grid-thumbnail {
    height: 180px;
  }
}

/* ===================================
   LIST LAYOUT
   =================================== */

.emissio-projects-list {
  margin: var(--ep-space-2xl) 0;
}

.emissio-projects-list-item {
  background: var(--ep-bg);
  padding: var(--ep-space-2xl);
  margin-bottom: var(--ep-space-xl);
  border-radius: var(--ep-radius-lg);
  box-shadow: var(--ep-shadow-md);
  transition: var(--ep-transition-slow);
  border-left: 4px solid transparent;
}

.emissio-projects-list-item:hover {
  box-shadow: var(--ep-shadow-lg);
  transform: translateX(8px);
  border-left-color: var(--ep-primary);
}

.project-list-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--ep-space-md);
  gap: var(--ep-space-lg);
}

.project-list-title {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 700;
  margin: 0;
  flex: 1;
}

.project-list-title a {
  color: var(--ep-text);
  text-decoration: none;
  transition: var(--ep-transition-fast);
}

.project-list-title a:hover {
  color: var(--ep-primary);
}

.project-list-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--ep-space-lg) var(--ep-space-xl);
  margin-bottom: var(--ep-space-md);
  padding: var(--ep-space-lg);
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--ep-radius-md);
  color: var(--ep-text-muted);
  font-size: 0.95rem;
}

.project-meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--ep-space-xs);
  position: relative;
  padding-right: var(--ep-space-lg);
}

.project-meta-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.project-meta-item strong {
  color: var(--ep-text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 2px;
}

.project-list-excerpt {
  color: var(--ep-text-muted);
  line-height: var(--ep-line-height-relaxed);
  margin-bottom: var(--ep-space-lg);
}

.project-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ep-space-md);
  align-items: center;
}

.project-read-more {
  color: var(--ep-primary);
  font-weight: 600;
  text-decoration: none;
  transition: var(--ep-transition-base);
  display: inline-flex;
  align-items: center;
  gap: var(--ep-space-xs);
}

.project-read-more::after {
  content: '→';
  transition: var(--ep-transition-fast);
  display: inline-block;
}

.project-read-more:hover {
  color: var(--ep-primary-dark);
  gap: var(--ep-space-sm);
}

.project-read-more:hover::after {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .project-list-header {
    flex-direction: column;
  }
  .project-list-meta {
    grid-template-columns: 1fr;
    gap: var(--ep-space-md);
    padding: var(--ep-space-md);
  }
  .project-meta-item {
    padding-right: 0;
    padding-bottom: var(--ep-space-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  .project-meta-item:not(:last-child)::after {
    display: none;
  }
  .project-meta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .emissio-projects-list-item {
    padding: var(--ep-space-xl);
  }
}

@media (max-width: 480px) {
  .emissio-projects-list-item {
    padding: var(--ep-space-lg);
    margin-bottom: var(--ep-space-md);
  }
  .project-list-title {
    font-size: 1.2rem;
  }
}

/* ===================================
   CARDS LAYOUT
   =================================== */

.emissio-projects-cards {
  display: grid;
  gap: var(--ep-space-xl);
  margin: var(--ep-space-2xl) 0;
}
.emissio-projects-cards[data-columns="1"] { grid-template-columns: 1fr; }
.emissio-projects-cards[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.emissio-projects-cards[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.emissio-projects-cards[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .emissio-projects-cards[data-columns="3"],
  .emissio-projects-cards[data-columns="4"] {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .emissio-projects-cards {
    grid-template-columns: 1fr !important;
    gap: var(--ep-space-lg);
  }
}
@media (max-width: 480px) {
  .emissio-projects-cards {
    margin: var(--ep-space-xl) 0;
  }
}

.emissio-projects-card {
  background: var(--ep-bg);
  border-radius: var(--ep-radius-xl);
  overflow: hidden;
  box-shadow: var(--ep-shadow-md);
  transition: var(--ep-transition-slow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.emissio-projects-card:hover {
  box-shadow: var(--ep-shadow-hover);
  transform: translateY(-10px);
}

.project-card-header {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.project-card-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--ep-transition-slow);
}

.emissio-projects-card:hover .project-card-header img {
  transform: scale(1.1);
}

.project-card-header-gradient {
  background: linear-gradient(135deg, rgba(178,216,125,0.85) 0%, var(--ep-primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-icon {
  font-size: 4.5rem;
  opacity: 0.25;
  color: #fff;
}

.project-card-body {
  padding: var(--ep-space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.project-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ep-space-sm);
  margin-bottom: var(--ep-space-lg);
}

.project-sector-badge,
.project-status-badge,
.project-type-badge {
  display: inline-block;
  padding: var(--ep-space-xs) var(--ep-space-md);
  border-radius: var(--ep-radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.project-sector-badge {
  background: var(--ep-bg-muted);
  color: var(--ep-text-muted);
}

.project-type-badge {
  background: var(--ep-bg-subtle);
  color: var(--ep-text-light);
}

.project-card-title {
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  font-weight: 700;
  margin: 0 0 var(--ep-space-md) 0;
  line-height: var(--ep-line-height-tight);
}

.project-card-title a {
  color: var(--ep-text);
  text-decoration: none;
  transition: var(--ep-transition-fast);
}

.project-card-title a:hover {
  color: var(--ep-primary);
}

.project-card-client {
  color: var(--ep-text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--ep-space-sm);
  line-height: var(--ep-line-height-base);
}

.project-card-period {
  color: var(--ep-text-light);
  font-size: 0.9rem;
  margin-bottom: var(--ep-space-lg);
  font-weight: 500;
}

.project-card-excerpt {
  color: var(--ep-text-muted);
  font-size: 0.95rem;
  line-height: var(--ep-line-height-relaxed);
  margin-bottom: var(--ep-space-lg);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(1.75em * 3);
  min-height: calc(1.75em * 3);
}

.project-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ep-space-sm);
}

.project-card-button {
  display: inline-block;
  padding: var(--ep-space-sm) var(--ep-space-lg);
  border-radius: var(--ep-radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--ep-transition-base);
  text-align: center;
}

.project-card-button-primary {
  background: var(--ep-primary);
  color: #fff;
  border: none;
}

.project-card-button-primary:hover {
  background: var(--ep-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(var(--ep-primary-rgb), 0.4);
  color: #fff;
}

@media (max-width: 480px) {
  .project-card-body {
    padding: var(--ep-space-lg);
  }
  .project-card-header {
    height: 160px;
  }
}

/* ===================================
   ACCORDION LAYOUT
   =================================== */

.emissio-projects-accordion {
  margin: var(--ep-space-2xl) 0;
}

.project-accordion-item {
  margin-bottom: var(--ep-space-md);
  background: var(--ep-bg);
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-md);
  overflow: hidden;
  transition: var(--ep-transition-base);
}

.project-accordion-item:hover {
  border-color: var(--ep-primary);
  box-shadow: var(--ep-shadow-sm);
}

.project-accordion-item.active {
  border-color: var(--ep-primary);
  box-shadow: var(--ep-shadow-md);
}

.project-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--ep-space-lg) var(--ep-space-xl);
  cursor: pointer;
  background: var(--ep-bg);
  transition: var(--ep-transition-fast);
  gap: var(--ep-space-lg);
  min-height: 44px; /* Touch-friendly tap target */
}

.project-accordion-header:hover {
  background: var(--ep-bg-subtle);
}

.project-accordion-title-section {
  flex: 1;
}

.project-accordion-title {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  font-weight: 700;
  color: var(--ep-text);
  margin: 0 0 var(--ep-space-sm) 0;
  line-height: var(--ep-line-height-tight);
}

.project-accordion-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ep-space-md);
  color: var(--ep-text-muted);
  font-size: 0.9rem;
}

.project-accordion-badges-section {
  display: flex;
  align-items: center;
  gap: var(--ep-space-sm);
}

.project-status-badge-small,
.project-sector-badge-small {
  display: inline-block;
  padding: var(--ep-space-xs) var(--ep-space-sm);
  border-radius: var(--ep-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
}

.project-sector-badge-small {
  background: var(--ep-text-light);
}

.project-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--ep-primary);
  color: #fff;
  border-radius: var(--ep-radius-full);
  transition: var(--ep-transition-base);
  flex-shrink: 0;
}

.toggle-icon {
  transition: var(--ep-transition-fast);
  display: block;
}

.project-accordion-item.active .toggle-icon {
  transform: rotate(180deg);
}

.project-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.project-accordion-item.active .project-accordion-content {
  border-top: 1px solid var(--ep-border);
}

.project-accordion-inner {
  padding: var(--ep-space-xl);
}

.project-accordion-client,
.project-accordion-excerpt,
.project-accordion-outcomes {
  margin-bottom: var(--ep-space-lg);
  line-height: var(--ep-line-height-relaxed);
  color: var(--ep-text-muted);
}

.project-accordion-client strong,
.project-accordion-excerpt strong,
.project-accordion-outcomes strong {
  color: var(--ep-text);
  display: block;
  margin-bottom: var(--ep-space-sm);
}

.project-accordion-outcomes ul {
  margin: var(--ep-space-sm) 0 0 0;
  padding-left: var(--ep-space-lg);
}

.project-accordion-outcomes li {
  margin-bottom: var(--ep-space-sm);
}

.project-accordion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ep-space-md);
  margin-top: var(--ep-space-lg);
  padding-top: var(--ep-space-lg);
  border-top: 1px solid var(--ep-border);
}

.project-accordion-link {
  color: var(--ep-primary);
  font-weight: 600;
  text-decoration: none;
  transition: var(--ep-transition-fast);
}

.project-accordion-link:hover {
  color: var(--ep-primary-dark);
}

@media (max-width: 768px) {
  .project-accordion-header {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--ep-space-md) var(--ep-space-lg);
  }
  .project-accordion-badges-section {
    width: 100%;
    justify-content: space-between;
  }
  .project-accordion-inner {
    padding: var(--ep-space-lg);
  }
}

@media (max-width: 480px) {
  .project-accordion-header {
    padding: var(--ep-space-md);
  }
  .project-accordion-inner {
    padding: var(--ep-space-md);
  }
  .project-accordion-title {
    font-size: 1rem;
  }
}

/* ===================================
   SINGLE PAGE STYLES
   =================================== */

.emissio-single-project {
  background: var(--ep-bg);
}

/* Hero Section */
.project-hero {
  background: linear-gradient(135deg, var(--ep-primary) 0%, var(--ep-primary-dark) 100%);
  color: #fff;
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.project-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.project-hero-inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 var(--ep-space-lg);
  position: relative;
  z-index: 1;
}

.project-hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--ep-space-md);
  margin-bottom: var(--ep-space-xl);
  position: relative;
  z-index: 2;
}

.project-hero-badges-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--ep-space-md);
  flex: 1;
}

/* Base styles for all hero badges */
.project-hero-badges .project-sector-badge,
.project-hero-badges .project-region-badge,
.project-hero-badges .project-status-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.75rem;
  background: #b2d87d !important;
  color: #fff !important;
  border-radius: var(--ep-radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: none;
  white-space: nowrap;
  line-height: 1.2;
  height: 2.5rem;
  margin: 0;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* Status badge positioned on the right side */
.project-hero-badges .project-status-badge {
  margin-left: auto;
}

@media (max-width: 768px) {
  .project-hero-badges {
    justify-content: center;
  }
  
  .project-hero-badges .project-status-badge {
    margin-left: 0;
  }
}

.project-hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  margin: 0 0 var(--ep-space-xl) 0;
  line-height: var(--ep-line-height-tight);
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.project-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--ep-space-2xl);
  margin-top: var(--ep-space-2xl);
}

.project-meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--ep-space-sm);
}

.project-meta-item .meta-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  font-weight: 600;
}

.project-meta-item .meta-value {
  font-size: 1.3rem;
  font-weight: 700;
}

/* Stats Bar */
.project-stats-bar {
  background: var(--ep-bg);
  padding: var(--ep-space-3xl) 0;
  border-bottom: 3px solid var(--ep-primary);
  box-shadow: var(--ep-shadow-sm);
}

.project-stats-inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 var(--ep-space-lg);
}

.project-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--ep-space-2xl);
  text-align: center;
}

.project-stat-item {
  padding: var(--ep-space-xl) var(--ep-space-lg);
  background: var(--ep-bg-subtle);
  border-radius: var(--ep-radius-lg);
  transition: var(--ep-transition-base);
}

.project-stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--ep-shadow-hover);
  background: var(--ep-bg);
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--ep-primary);
  margin-bottom: var(--ep-space-md);
  display: block;
}

.stat-value {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--ep-text);
  margin-bottom: var(--ep-space-sm);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--ep-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Content Wrapper */
.project-content-wrapper {
  max-width: 1170px;
  margin: 0 auto;
  padding: var(--ep-space-3xl) var(--ep-space-lg);
}

/* Content Sections */
.project-section {
  background: var(--ep-bg);
  padding: var(--ep-space-3xl);
  margin-bottom: var(--ep-space-2xl);
  border-radius: var(--ep-radius-xl);
  box-shadow: var(--ep-shadow-md);
  transition: var(--ep-transition-base);
}

.project-section:hover {
  box-shadow: var(--ep-shadow-lg);
}

.section-title {
  color: var(--ep-primary);
  font-family: var(--ep-font-family);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 var(--ep-space-xl) 0;
  padding-bottom: var(--ep-space-lg);
  border-bottom: 3px solid var(--ep-primary-light);
}

.section-content {
  font-size: 1.1rem;
  line-height: var(--ep-line-height-relaxed);
  color: var(--ep-text-muted);
}

.section-content p {
  margin-bottom: 1.5em;
}

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

.project-section-alt {
  background: var(--ep-primary-light);
  padding: var(--ep-space-3xl);
  margin-bottom: 40px;
  border-radius: 16px;
}

/* Key Outcomes */
.outcomes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--ep-space-lg);
}

.outcome-item {
  display: flex;
  align-items: flex-start;
  gap: var(--ep-space-lg);
  padding: var(--ep-space-xl);
  background: var(--ep-primary-light);
  border-radius: var(--ep-radius-lg);
  border-left: 4px solid var(--ep-primary);
  transition: var(--ep-transition-base);
}

.outcome-item:hover {
  background: rgba(178, 216, 125, 0.2);
  transform: translateX(5px);
}

.outcome-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--ep-primary);
  color: #fff;
  border-radius: var(--ep-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}

.outcome-text {
  flex: 1;
  font-size: 1.05rem;
  line-height: var(--ep-line-height-relaxed);
  color: var(--ep-text);
  margin: 0;
}

/* Contributions Section */
.contributions-grid {
  display: grid;
  gap: var(--ep-space-xl);
}

.contribution-card {
  background: var(--ep-bg);
  border: 2px solid var(--ep-border-light);
  border-radius: var(--ep-radius-xl);
  padding: var(--ep-space-2xl);
  transition: var(--ep-transition-base);
  box-shadow: var(--ep-shadow-sm);
}

.contribution-card:hover {
  border-color: var(--ep-primary);
  box-shadow: var(--ep-shadow-lg);
  transform: translateY(-3px);
}

.contribution-header {
  display: flex;
  align-items: flex-start;
  gap: var(--ep-space-xl);
  margin-bottom: var(--ep-space-xl);
  padding-bottom: var(--ep-space-xl);
  border-bottom: 2px solid var(--ep-border-light);
}

.member-photo,
.member-photo-placeholder {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: var(--ep-radius-full);
  overflow: hidden;
  border: 4px solid var(--ep-primary);
  box-shadow: 0 4px 12px rgba(var(--ep-primary-rgb), 0.3);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-photo-placeholder {
  background: linear-gradient(135deg, rgba(178,216,125,0.8) 0%, var(--ep-primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.5rem;
}

.photo-icon {
  display: block;
}

.member-info {
  flex: 1;
  min-width: 0;
}

.member-name {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--ep-text);
  margin: 0 0 var(--ep-space-sm) 0;
  line-height: var(--ep-line-height-tight);
}

.member-name a {
  color: inherit;
  text-decoration: none;
  transition: var(--ep-transition-fast);
}

.member-name a:hover {
  color: var(--ep-primary);
}

.member-role {
  font-size: 1.1rem;
  color: var(--ep-primary);
  font-weight: 600;
  margin-bottom: var(--ep-space-md);
}

.member-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ep-space-md);
  font-size: 0.95rem;
  color: var(--ep-text-muted);
}

.member-meta span {
  display: flex;
  align-items: center;
  gap: var(--ep-space-xs);
}

.member-profile-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--ep-space-sm);
  padding: var(--ep-space-md) var(--ep-space-xl);
  background: var(--ep-primary);
  color: #fff;
  text-decoration: none;
  border-radius: var(--ep-radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--ep-transition-base);
  white-space: nowrap;
  min-height: 44px; /* Touch-friendly */
}

.member-profile-link:hover {
  background: var(--ep-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--ep-primary-rgb), 0.4);
  color: #fff;
}

.contribution-section {
  margin-bottom: var(--ep-space-xl);
}

.contribution-section:last-child {
  margin-bottom: 0;
}

.contribution-section-title {
  color: var(--ep-text);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 var(--ep-space-md) 0;
  padding-bottom: var(--ep-space-sm);
  border-bottom: 2px solid var(--ep-primary-light);
  text-transform: none;
  letter-spacing: 0;
}

.contribution-section-content {
  color: var(--ep-text-muted);
  line-height: var(--ep-line-height-relaxed);
  font-size: 1.05rem;
}

.contribution-section-content p {
  margin-bottom: 1em;
}

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

.achievements-content {
  background: rgba(178, 216, 125, 0.1);
  padding: 25px;
  border-radius: 12px;
  border-left: 4px solid var(--pagelayer-color-primary, #8cc63f);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.metric-item {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.metric-item:hover {
  border-color: var(--pagelayer-color-primary, #8cc63f);
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(140,198,63,0.15);
}

.metric-label {
  display: block;
  font-size: 0.85rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 10px;
}

.metric-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pagelayer-color-primary, #8cc63f);
  line-height: 1.3;
}

/* References Section */
.references-content {
  background: rgba(178, 216, 125, 0.1);
  padding: 35px;
  border-radius: 12px;
  border-left: 5px solid var(--pagelayer-color-primary, #8cc63f);
  font-size: 1.05rem;
  line-height: 1.9;
}

.references-content a {
  color: var(--pagelayer-color-primary, #8cc63f);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.references-content a:hover {
  border-bottom-color: var(--pagelayer-color-primary, #8cc63f);
}

/* Related Projects */
.related-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.related-project-card {
  background: #fff;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.related-project-card:hover {
  border-color: var(--pagelayer-color-primary, #8cc63f);
  box-shadow: 0 8px 24px rgba(140,198,63,0.2);
  transform: translateY(-5px);
  text-decoration: none;
  color: inherit;
}

.related-project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(178,216,125,0.8) 0%, var(--pagelayer-color-primary, #8cc63f) 100%);
}

.related-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-project-card:hover .related-project-image img {
  transform: scale(1.1);
}

.related-project-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-project-sector {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(140,198,63,0.1);
  color: var(--pagelayer-color-primary, #8cc63f);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 15px;
  align-self: flex-start;
}

.related-project-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  color: var(--pagelayer-color-text, #1d1d1d);
  line-height: 1.4;
  transition: color 0.3s ease;
}

.related-project-card:hover .related-project-title {
  color: var(--pagelayer-color-primary, #8cc63f);
}

.related-project-period {
  color: #666;
  font-size: 0.95rem;
  margin-top: auto;
  font-weight: 500;
}

/* Navigation */
.project-navigation {
  max-width: 1170px;
  margin: 60px auto 40px;
  padding: 0 20px;
}

.back-to-projects {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: var(--pagelayer-color-primary, #8cc63f);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.back-to-projects:hover {
  background: #6fa830;
  transform: translateX(-5px);
  color: #fff;
  box-shadow: 0 4px 12px rgba(140,198,63,0.4);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .project-hero-title {
    font-size: 2.75rem;
  }
  
  .project-content-wrapper {
    padding: 60px 20px;
  }
  
  .project-section {
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .project-hero {
    padding: 60px 0 50px;
  }
  
  .project-hero-title {
    font-size: 2rem;
  }
  
  .project-hero-meta {
    flex-direction: column;
    gap: 20px;
  }
  
  .project-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .project-content-wrapper {
    padding: 40px 15px;
  }
  
  .project-section {
    padding: 30px 20px;
    margin-bottom: 30px;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .contribution-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  
  .member-photo,
  .member-photo-placeholder {
    width: 120px;
    height: 120px;
  }
  
  .member-profile-link {
    align-self: center;
  }
  
  .member-info {
    text-align: center;
  }
  
  .member-meta {
    justify-content: center;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .related-projects-grid {
    grid-template-columns: 1fr;
  }
  
  .outcomes-list {
    gap: 15px;
  }
  
  .outcome-item {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .project-hero-title {
    font-size: 1.75rem;
  }
  
  .project-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .project-section {
    padding: 25px 15px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .contribution-card {
    padding: 25px 20px;
  }
  
  .member-name {
    font-size: 1.3rem;
  }
}

/* Member Projects Section (on team pages) */
.emissio-member-projects {
  margin: 40px 0;
}

.member-projects-heading {
  color: var(--pagelayer-color-primary, #8cc63f);
  margin-bottom: 25px;
}

.member-projects-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.member-project-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

.member-project-item:hover {
  box-shadow: 0 4px 12px rgba(140,198,63,0.2);
  transform: translateX(5px);
}

.member-project-item .project-period {
  flex: 0 0 100px;
  color: var(--pagelayer-color-primary, #8cc63f);
  font-weight: 700;
  text-align: right;
  padding-right: 20px;
  border-right: 3px solid var(--pagelayer-color-primary, #8cc63f);
}

.member-project-item .project-info {
  flex: 1;
}

.member-project-item .project-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.member-project-item .project-title a {
  color: var(--pagelayer-color-text, #1d1d1d);
  text-decoration: none;
}

.member-project-item .project-title a:hover {
  color: var(--pagelayer-color-primary, #8cc63f);
}

.member-project-item .project-role {
  color: #333;
  margin-bottom: 5px;
}

.member-project-item .project-role .org-name {
  color: #666;
}

.member-project-item .project-client {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.member-project-item .project-sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-project-item .sector-badge {
  display: inline-block;
  padding: 3px 10px;
  background: #e0e0e0;
  color: #666;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .member-project-item {
    flex-direction: column;
  }
  .member-project-item .project-period {
    text-align: left;
    border-right: none;
    border-bottom: 3px solid var(--pagelayer-color-primary, #8cc63f);
    padding-right: 0;
    padding-bottom: 10px;
  }
}

/* No projects message */
.no-projects {
  text-align: center;
  padding: 60px 40px;
  color: #666;
  font-size: 1.1rem;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px dashed #ddd;
}

/* Breadcrumbs */
.emissio-projects-breadcrumbs {
  background: #f8f9fa;
  padding: 20px 0;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 0;
}

.emissio-projects-breadcrumbs ol {
  list-style: none;
  padding: 0 20px;
  margin: 0 auto;
  max-width: 1170px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.emissio-projects-breadcrumbs li {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: #666;
}

.emissio-projects-breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 10px;
  color: #999;
  font-size: 1.2rem;
}

.emissio-projects-breadcrumbs a {
  color: var(--pagelayer-color-primary, #8cc63f);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.emissio-projects-breadcrumbs a:hover {
  color: #6fa830;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .emissio-projects-breadcrumbs {
    padding: 15px 0;
  }
  
  .emissio-projects-breadcrumbs ol {
    padding: 0 15px;
  }
  
  .emissio-projects-breadcrumbs li {
    font-size: 0.85rem;
  }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* ===================================
   MEMBER PROJECTS PAGE
   =================================== */

.emissio-member-projects-page {
    background: var(--ep-bg, #fff);
}

/* Hero Section */
.member-projects-hero {
    background: linear-gradient(135deg, var(--ep-primary, #8cc63f) 0%, var(--ep-primary-dark, #6fa830) 100%);
    color: #fff;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.member-projects-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="60" height="60" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.member-projects-hero-inner {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.member-projects-hero-content {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.member-hero-photo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.member-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-hero-info {
    flex: 1;
}

.member-hero-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.member-hero-title {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 8px;
    font-weight: 500;
}

.member-hero-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--ep-radius-full, 9999px);
    backdrop-filter: blur(4px);
}

.back-to-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--ep-transition-base, 0.25s ease);
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--ep-radius-full, 9999px);
}

.back-to-profile-link:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateX(-4px);
}

/* Projects Content Area */
.member-projects-content {
    background: var(--ep-bg-subtle, #f9fafb);
    padding: 60px 0;
}

.member-projects-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Timeline */
.projects-timeline {
    position: relative;
}

.projects-timeline::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--ep-primary, #8cc63f), var(--ep-primary-light, rgba(140, 198, 63, 0.3)));
    border-radius: 3px;
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

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

.timeline-marker {
    flex: 0 0 80px;
    text-align: right;
    padding-right: 25px;
    position: relative;
}

.timeline-marker::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--ep-primary, #8cc63f);
    border-radius: 50%;
    border: 4px solid var(--ep-bg-subtle, #f9fafb);
    box-shadow: 0 0 0 3px var(--ep-primary, #8cc63f);
}

.timeline-year {
    display: block;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--ep-primary, #8cc63f);
}

.timeline-year-end {
    display: block;
    font-size: 0.9rem;
    color: var(--ep-text-muted, #666);
    margin-top: 4px;
}

.timeline-content {
    flex: 1;
    padding-left: 25px;
}

.timeline-card {
    background: var(--ep-bg, #fff);
    border-radius: var(--ep-radius-xl, 16px);
    padding: 30px;
    box-shadow: var(--ep-shadow-md, 0 4px 12px rgba(0, 0, 0, 0.1));
    transition: var(--ep-transition-slow, 0.4s cubic-bezier(0.4, 0, 0.2, 1));
    border: 2px solid transparent;
}

.timeline-card:hover {
    box-shadow: var(--ep-shadow-hover, 0 12px 32px rgba(140, 198, 63, 0.2));
    border-color: var(--ep-primary, #8cc63f);
    transform: translateY(-4px);
}

.timeline-card-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--ep-border-light, #f0f0f0);
}

.timeline-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.timeline-status-badge,
.timeline-sector-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: var(--ep-radius-full, 9999px);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-status-badge {
    color: #fff;
}

.timeline-sector-badge {
    background: var(--ep-bg-muted, #f5f5f5);
    color: var(--ep-text-muted, #666);
}

.timeline-project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.timeline-project-title a {
    color: var(--ep-text, #1d1d1d);
    text-decoration: none;
    transition: var(--ep-transition-fast, 0.15s ease);
}

.timeline-project-title a:hover {
    color: var(--ep-primary, #8cc63f);
}

.timeline-client {
    color: var(--ep-text-muted, #666);
    font-size: 0.95rem;
}

.timeline-client strong {
    color: var(--ep-text, #1d1d1d);
}

/* Role Section */
.timeline-role-section {
    background: var(--ep-primary-light, rgba(140, 198, 63, 0.1));
    padding: 20px;
    border-radius: var(--ep-radius-lg, 12px);
    margin-bottom: 20px;
    border-left: 4px solid var(--ep-primary, #8cc63f);
}

.timeline-role-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ep-text, #1d1d1d);
    margin-bottom: 4px;
}

.timeline-organization {
    color: var(--ep-text-muted, #666);
    font-size: 0.95rem;
}

.timeline-contribution-period {
    color: var(--ep-text-light, #888);
}

/* Timeline Sections */
.timeline-section {
    margin-bottom: 20px;
}

.timeline-section:last-child {
    margin-bottom: 0;
}

.timeline-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ep-text, #1d1d1d);
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ep-primary-light, rgba(140, 198, 63, 0.2));
}

.timeline-section-content {
    color: var(--ep-text-muted, #666);
    line-height: var(--ep-line-height-relaxed, 1.75);
    font-size: 0.95rem;
}

.timeline-section-content ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.timeline-section-content li {
    margin-bottom: 8px;
}

/* Metrics Grid */
.timeline-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.timeline-metric-item {
    background: var(--ep-bg-subtle, #f9fafb);
    padding: 16px;
    border-radius: var(--ep-radius-lg, 12px);
    text-align: center;
    border: 2px solid transparent;
    transition: var(--ep-transition-base, 0.25s ease);
}

.timeline-metric-item:hover {
    border-color: var(--ep-primary, #8cc63f);
    background: var(--ep-bg, #fff);
}

.timeline-metric-label {
    display: block;
    font-size: 0.75rem;
    color: var(--ep-text-muted, #666);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-metric-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ep-primary, #8cc63f);
    line-height: 1.3;
}

/* Achievements */
.timeline-achievements {
    background: var(--ep-primary-light, rgba(140, 198, 63, 0.1));
    padding: 20px;
    border-radius: var(--ep-radius-lg, 12px);
    border-left: 4px solid var(--ep-primary, #8cc63f);
    color: var(--ep-text-muted, #666);
    line-height: var(--ep-line-height-relaxed, 1.75);
    font-size: 0.95rem;
}

/* Timeline Actions */
.timeline-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--ep-border-light, #f0f0f0);
}

.timeline-project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--ep-primary, #8cc63f);
    color: #fff;
    text-decoration: none;
    border-radius: var(--ep-radius-full, 9999px);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--ep-transition-base, 0.25s ease);
}

.timeline-project-link:hover {
    background: var(--ep-primary-dark, #6fa830);
    color: #fff;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(140, 198, 63, 0.4);
}

/* No Projects Message */
.no-projects-message {
    text-align: center;
    padding: 80px 40px;
    background: var(--ep-bg, #fff);
    border-radius: var(--ep-radius-xl, 16px);
    border: 2px dashed var(--ep-border, #e5e7eb);
    color: var(--ep-text-muted, #666);
    font-size: 1.1rem;
}

/* Bottom Navigation */
.member-projects-navigation {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.back-to-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--ep-primary, #8cc63f);
    color: #fff;
    text-decoration: none;
    border-radius: var(--ep-radius-full, 9999px);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--ep-transition-base, 0.25s ease);
}

.back-to-profile-btn:hover {
    background: var(--ep-primary-dark, #6fa830);
    color: #fff;
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(140, 198, 63, 0.4);
}

/* Responsive - Member Projects Page */
@media (max-width: 768px) {
    .member-projects-hero {
        padding: 60px 0 40px;
    }

    .member-projects-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .member-hero-photo {
        width: 100px;
        height: 100px;
    }

    .member-hero-name {
        font-size: 1.75rem;
    }

    .member-projects-content {
        padding: 40px 0;
    }

    .projects-timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column;
        gap: 15px;
    }

    .timeline-marker {
        flex: none;
        text-align: left;
        padding-left: 50px;
        padding-right: 0;
    }

    .timeline-marker::after {
        left: 12px;
        right: auto;
    }

    .timeline-content {
        padding-left: 50px;
    }

    .timeline-card {
        padding: 20px;
    }

    .timeline-project-title {
        font-size: 1.25rem;
    }

    .timeline-metrics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .member-hero-name {
        font-size: 1.5rem;
    }

    .timeline-card {
        padding: 15px;
    }

    .timeline-role-section {
        padding: 15px;
    }

    .back-to-profile-btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
}
