/* Revolutionary Projects Page Design */

/* Projects Page Banner Customization */
.projects-section ~ * .page-banner,
main .page-banner {
  max-width: none;
  margin: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  height: clamp(300px, 35vh, 500px) !important;
}

main .page-banner.scrolled {
  height: clamp(150px, 20vh, 300px) !important;
}

/* Animation Classes - Members Page Style */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Projects Ecosystem Section */
.projects-ecosystem {
  padding: 4rem 2rem;
  max-width: 1332px;
  margin: 0 auto;
  background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
  position: relative;
  overflow: hidden;
}

.projects-ecosystem::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 103, 132, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 226, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Innovation Header */
.innovation-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.innovation-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.innovation-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.badge-icon {
  font-size: 1.2rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.ecosystem-title {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2c3e50, #3498db, #9b59b6);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease-in-out infinite;
  margin-bottom: 1rem;
  line-height: 1.2;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.ecosystem-subtitle {
  font-size: 1.3rem;
  color: #64748b;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Projects Section Container */
.projects-section {
  max-width: 1300px;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
}

/* Projects Filters */
.projects-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 3rem;
}

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

.filter-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c3e50;
  white-space: nowrap;
}

.filter-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-btn {
  /* 투명 배경 + 언더바 스타일 */
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  
  /* Smooth transitions */
  transition: all 0.3s ease;
  white-space: nowrap;
  
  /* Text styling */
  letter-spacing: 0.5px;
  position: relative;
  
  /* Flexbox for count badge */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-btn .filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  background: rgba(0, 210, 190, 0.2);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #00D2BE;
  line-height: 1;
  border: 1px solid rgba(0, 210, 190, 0.3);
}

.filter-btn:hover .filter-count {
  background: rgba(0, 210, 190, 0.25);
  border-color: rgba(0, 210, 190, 0.5);
  color: #00B5A4;
}

.filter-btn.active .filter-count {
  background: #00D2BE;
  color: #ffffff;
  border-color: #00D2BE;
}

.filter-btn::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #00D2BE, #00AAA0);
  transition: width 0.3s ease;
}

.filter-btn:hover::before {
  width: 100%;
}

.filter-btn:hover {
  color: #00D2BE;
  background: rgba(0, 210, 190, 0.05);
}

.filter-btn.active {
  color: #00D2BE;
  font-weight: 700;
  border-bottom-color: #00D2BE;
  background: rgba(0, 210, 190, 0.08);
}

.filter-btn.active::before {
  width: 100%;
}

.filter-category {
  margin-bottom: 2.5rem;
}

.filter-category:last-child {
  margin-bottom: 0;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.category-icon {
  font-size: 1.5rem;
}

.category-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
}

/* Filter Grid */
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.smart-filter {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 0;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
  min-height: auto;
}

.smart-filter::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transition: left 0.5s ease;
}

.smart-filter:hover::before {
  left: 100%;
}

.smart-filter:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: #3b82f6;
}

.smart-filter.active {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.filter-icon {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.filter-text {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
}

.filter-count {
  background: rgba(255, 255, 255, 0.2);
  color: #64748b;
  padding: 0.15rem 0.5rem;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.1rem;
}

.smart-filter.active .filter-count {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

.pill-indicator {
  width: 8px;
  height: 8px;
  border-radius: 0;
  animation: statusPulse 2s infinite;
}

.pill-indicator.all {
  background: linear-gradient(45deg, #3b82f6, #8b5cf6, #ef4444);
  background-size: 200% 200%;
  animation: statusPulse 2s infinite, gradientShift 3s infinite;
}

.pill-indicator.ongoing {
  background: #f59e0b;
}

.pill-indicator.completed {
  background: #10b981;
}

/* Projects Showcase */
.projects-showcase {
  margin-bottom: 4rem;
}

/* Impact Metrics Container */
.impact-metrics-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* Impact Metrics */
.impact-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 3rem 2rem;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.impact-metrics::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: float 20s linear infinite;
}

@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-30px, -30px) rotate(360deg); }
}

.metric-card {
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
}

.metric-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.metric-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.metric-label {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ecosystem-title {
    font-size: 2.5rem;
  }
  
  .ecosystem-subtitle {
    font-size: 1.1rem;
  }
  
  .projects-filters {
    gap: 1rem;
    flex-direction: column;
  }
  
  .filter-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .impact-metrics {
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem 1rem;
  }
}

/* Revolutionary Project Cards */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.revolutionary-project-card {
  background: white;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

.revolutionary-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #cbd5e1;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s ease;
}

.revolutionary-project-card:hover .project-card-header {
  border-bottom-color: currentColor;
}

.category-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-badge.excavated-conservation {
  background: linear-gradient(135deg, #8D6E63, #6D4C41);
  color: white;
}

.revolutionary-project-card .category-badge.excavated-conservation ~ * {
  color: #8D6E63;
}

.category-badge.site-investigation {
  background: linear-gradient(135deg, #2196F3, #1976D2);
  color: white;
}

.revolutionary-project-card .category-badge.site-investigation ~ * {
  color: #2196F3;
}

.category-badge.designation-research {
  background: linear-gradient(135deg, #9C27B0, #7B1FA2);
  color: white;
}

.revolutionary-project-card .category-badge.designation-research ~ * {
  color: #9C27B0;
}

.category-badge.preservation-research {
  background: linear-gradient(135deg, #4CAF50, #388E3C);
  color: white;
}

.revolutionary-project-card .category-badge.preservation-research ~ * {
  color: #4CAF50;
}

.category-badge.restoration-research {
  background: linear-gradient(135deg, #FF9800, #F57C00);
  color: white;
}

.revolutionary-project-card .category-badge.restoration-research ~ * {
  color: #FF9800;
}

/* 비주얼 섹션 완전 제거 */
.project-visual,
.project-gradient,
.project-pattern,
.floating-elements,
.float-element {
  display: none !important;
}

.project-content {
  padding: 0 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.65rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-description {
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 0.85rem;
  font-size: 0.875rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e2e8f0;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
}

.meta-icon {
  font-size: 1rem;
  width: 16px;
  text-align: center;
}

.project-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.keyword-tag {
  background: #f1f5f9;
  color: #475569;
  padding: 0.2rem 0.5rem;
  border-radius: 0;
  font-size: 0.675rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.keyword-tag:hover {
  background: #e2e8f0;
  color: #334155;
}

.project-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: #f8fafc;
  margin: 0 -1.25rem -1.25rem;
  border-top: 1px solid #e2e8f0;
  margin-top: auto;
}

.action-btn {
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.action-btn.primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 0.65rem 1.2rem;
  flex: 1;
}

.action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.action-btn.secondary {
  background: white;
  color: #64748b;
  padding: 0.65rem;
  border: 1px solid #e2e8f0;
  min-width: 40px;
}

.action-btn.secondary:hover {
  background: #fef2f2;
  color: #ef4444;
  border-color: #fecaca;
  transform: scale(1.05);
}

.btn-icon {
  font-size: 1rem;
}

/* Legacy Project List Styles - Keep for compatibility */
.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-item {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  position: relative;
}

.project-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.project-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

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

.project-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102,126,234,0.8) 0%, rgba(118,75,162,0.8) 100%);
  z-index: 1;
}

.project-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  z-index: 2;
  position: relative;
}

.project-content {
  padding: 1.5rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.project-category {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 600;
  background: #e3f2fd;
  color: #1565c0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-item h3 {
  margin: 0 0 0.8rem 0;
  color: #333;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

.project-item p {
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #888;
  flex-wrap: wrap;
}

.project-duration,
.project-funding {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}


.project-keywords {
  margin-bottom: 1rem;
}

.keyword-tag {
  display: inline-block;
  background: #f8f9fa;
  color: #495057;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 0;
  margin: 0 0.3rem 0.3rem 0;
  border: 1px solid #e9ecef;
}

.project-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.view-details-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-details-btn:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

/* Modal styles for project details */
.project-detail-modal .modal-content {
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.project-detail-content {
  padding: 2rem;
}

.project-detail-content h2 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  font-weight: 600;
}

.project-detail-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.project-detail-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 2rem;
}

.project-detail-info {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0;
  margin-bottom: 1.5rem;
}

.info-item {
  display: flex;
  margin-bottom: 1rem;
  gap: 1rem;
}

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

.info-item strong {
  min-width: 120px;
  color: #333;
}

.project-detail-keywords {
  margin-bottom: 1.5rem;
}

.keyword-tags {
  margin-top: 0.5rem;
}

.project-detail-publications ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.project-detail-publications a {
  color: #007bff;
  text-decoration: none;
}

.project-detail-publications a:hover {
  text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 1200px) {
  .project-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .projects-section {
    padding: 1.5rem;
    margin: 1rem auto;
  }
  
  .projects-title {
    font-size: 2.2rem;
  }
  
  .projects-subtitle {
    font-size: 1.1rem;
  }
  
  .projects-filters {
    gap: 1rem;
    flex-direction: column;
  }
  
  .filter-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .showcase-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
  }
  
  .project-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .project-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .project-detail-content {
    padding: 1rem;
  }
  
  .project-detail-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .info-item {
    flex-direction: column;
    gap: 0.3rem;
  }
  
  .info-item strong {
    min-width: auto;
  }
}

/* Modern Project Cards Design */
.modern-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  padding: 2rem 0;
  max-width: 1332px;
  margin: 0 auto;
}

/* No Results Message */
.no-results-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: #666;
  font-size: 1.2rem;
  font-weight: 500;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 0;
  margin: 2rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.no-results-message::before {
  content: "?��";
  display: block;
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.modern-project-card {
  background: white;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #e2e8f0;
  position: relative;
  height: fit-content;
}

.modern-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 210, 190, 0.12);
  border-color: #00D2BE;
}

.project-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.project-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  width: fit-content;
  margin-bottom: 0.6rem;
}

.project-category-badge.excavated-conservation {
  background: linear-gradient(135deg, rgba(141, 110, 99, 0.6), rgba(109, 76, 65, 0.6));
  color: #ffffff;
}

.project-category-badge.site-investigation {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.6), rgba(25, 118, 210, 0.6));
  color: #ffffff;
}

.project-category-badge.designation-research {
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.6), rgba(123, 31, 162, 0.6));
  color: #ffffff;
}

.project-category-badge.preservation-research {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.6), rgba(56, 142, 60, 0.6));
  color: #ffffff;
}

.project-category-badge.restoration-research {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.6), rgba(245, 124, 0, 0.6));
  color: #ffffff;
}

.project-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.85rem 0;
  line-height: 1.4;
  min-height: calc(1.05rem * 1.4 * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 0.85rem;
  border-top: 2px solid #f1f5f9;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
}

.meta-item i {
  width: 18px;
  text-align: center;
  color: #00D2BE;
  font-size: 0.95rem;
}

.project-footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modern-projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }
  
  .project-meta {
    flex-direction: row;
    gap: 1rem;
  }
  
  .project-footer {
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
  }
  
  .filter-btns {
    justify-content: flex-start;
    gap: 0.5rem;
  }
  
  .filter-btn {
    font-size: 0.75rem;
    padding: 0.6rem 0.7rem;
    white-space: normal;
    line-height: 1.3;
    text-align: center;
  }
  
  /* 1행에 2개 버튼 (All 30%, Site Survey 70%) */
  .filter-btn:nth-child(1) {
    flex: 0 0 calc(28% - 0.3rem);
  }
  
  .filter-btn:nth-child(2) {
    flex: 0 0 calc(72% - 0.2rem);
  }
  
  /* 2행에 3개 버튼 */
  .filter-btn:nth-child(3),
  .filter-btn:nth-child(4),
  .filter-btn:nth-child(5) {
    flex: 0 0 calc(33.333% - 0.34rem);
  }
}

/* Project Detail Modal */
.project-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.project-modal-content {
  background: white;
  border-radius: 0;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.project-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 1rem 2rem;
  border-bottom: 1px solid #f0f0f0;
}

.project-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
}

.project-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  transition: all 0.3s ease;
}

.project-modal-close:hover {
  background: #f5f5f5;
  color: #666;
}

.project-modal-body {
  padding: 2rem;
}

.project-detail-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0;
  width: fit-content;
}

.project-detail-status.ongoing {
  background: rgba(255, 152, 0, 0.1);
  color: #FF9800;
}

.project-detail-status.completed {
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
}

.project-detail-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 2rem;
}

.project-detail-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-row {
  display: flex;
  gap: 1rem;
}

.info-row strong {
  min-width: 100px;
  color: #666;
  font-weight: 600;
}

.project-detail-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.keyword-tag {
  background: #2196F3;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .project-modal-overlay {
    padding: 1rem;
  }
  
  .project-modal-header,
  .project-modal-body {
    padding: 1.5rem;
  }
  
  .info-row {
    flex-direction: column;
    gap: 0.3rem;
  }
}

/* 모바???�로?�트 ?�이지 최적??*/
@media screen and (max-width: 428px) {
  .projects-section {
    padding: 1rem;
    margin: 0.5rem auto;
  }
  
  .projects-filters {
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .filter-btns {
    justify-content: flex-start;
    gap: 0.5rem;
  }
  
  .filter-btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
    white-space: nowrap;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
  }
  
  /* 1행에 2개 버튼 (전체 프로젝트 40%, 문화유산 현장 조사 60%) */
  .filter-btn:nth-child(1) {
    flex: 0 0 calc(40% - 0.24rem);
  }
  
  .filter-btn:nth-child(2) {
    flex: 0 0 calc(60% - 0.16rem);
  }
  
  /* 2행에 3개 버튼 */
  .filter-btn:nth-child(3),
  .filter-btn:nth-child(4),
  .filter-btn:nth-child(5) {
    flex: 0 0 calc(33.333% - 0.27rem);
  }
  
  .projects-filters {
    gap: 1rem;
  }
  
  .modern-project-card {
    margin-bottom: 1.5rem;
    border-radius: 0;
  }
  
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0;
  }
  
  .project-content {
    padding: 0.9rem;
  }

  .project-category-badge {
    font-size: 0.7rem;
    padding: 0.18rem 0.5rem;
    margin-bottom: 0.5rem;
    gap: 0.3rem;
  }

  .project-title {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
    min-height: calc(0.95rem * 1.35 * 2);
  }

  .project-meta {
    gap: 0.45rem;
    padding-top: 0.75rem;
  }
  
  .meta-item {
    font-size: 0.7rem;
  }
  
  .meta-item i {
    font-size: 0.85rem;
    width: 16px;
  }
  
  .modern-project-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  .modern-project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 210, 190, 0.1);
  }  .project-modal {
    margin: 0.5rem;
    max-height: calc(100vh - 1rem);
    border-radius: 0;
  }
  
  .project-modal-header {
    padding: 1rem;
  }
  
  .project-modal-title {
    font-size: 1.3rem;
  }
  
  .impact-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.5rem 1rem;
  }
  
  .metric-card {
    padding: 1rem;
  }
  
  .metric-number {
    font-size: 1.5rem;
  }
}

/* 매우 작은 화면 최적화 */
@media screen and (max-width: 360px) {
  .filter-btn {
    font-size: 0.7rem;
    padding: 0.45rem 0.65rem;
  }
  
  .filter-btns {
    gap: 0.5rem;
  }
  
  /* 1행에 2개 버튼 (전체 프로젝트 40%, 문화유산 현장 조사 60%) */
  .filter-btn:nth-child(1) {
    flex: 0 0 calc(40% - 0.18rem);
  }
  
  .filter-btn:nth-child(2) {
    flex: 0 0 calc(60% - 0.12rem);
  }
  
  /* 2행에 3개 버튼 */
  .filter-btn:nth-child(3),
  .filter-btn:nth-child(4),
  .filter-btn:nth-child(5) {
    flex: 0 0 calc(33.333% - 0.2rem);
  }
}

@media screen and (max-width: 320px) {
  .filter-btn {
    font-size: 0.6rem;
    padding: 0.45rem 0.25rem;
  }
  
  .filter-btns {
    gap: 0.25rem;
  }
  
  /* 1행에 2개 버튼 (전체 프로젝트 40%, 문화유산 현장 조사 60%) */
  .filter-btn:nth-child(1) {
    flex: 0 0 calc(40% - 0.15rem);
  }
  
  .filter-btn:nth-child(2) {
    flex: 0 0 calc(60% - 0.1rem);
  }
  
  /* 2행에 3개 버튼 */
  .filter-btn:nth-child(3),
  .filter-btn:nth-child(4),
  .filter-btn:nth-child(5) {
    flex: 0 0 calc(33.333% - 0.17rem);
  }
}

/* ==================== Pagination Styles ==================== */

.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 3rem auto 2rem;
  padding: 1.5rem 1rem;
  max-width: 800px;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 4px 16px 0 rgba(31, 38, 135, 0.1),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.5);
  color: #2c3e50;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
}

.pagination-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #00D2BE 0%, #00A896 100%);
  color: white;
  border-color: #00D2BE;
  box-shadow: 
    0 8px 24px rgba(0, 210, 190, 0.3),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.3);
}

.pagination-numbers {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pagination-number {
  min-width: 40px;
  height: 40px;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 4px 16px 0 rgba(31, 38, 135, 0.1),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.5);
  color: #2c3e50;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-number:hover:not(.active) {
  background: rgba(0, 210, 190, 0.1);
  border-color: #00D2BE;
  color: #00D2BE;
  transform: translateY(-2px);
}

.pagination-number.active {
  background: linear-gradient(135deg, #00D2BE 0%, #00A896 100%);
  color: white;
  border-color: #00D2BE;
  box-shadow: 
    0 8px 24px rgba(0, 210, 190, 0.3),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

/* Responsive Pagination */
@media screen and (max-width: 768px) {
  .pagination-container {
    gap: 0.75rem;
    margin: 2rem auto 1.5rem;
    padding: 1rem 0.5rem;
  }
  
  .pagination-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  
  .pagination-number {
    min-width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
}

@media screen and (max-width: 428px) {
  .pagination-container {
    gap: 0.5rem;
    margin: 1.5rem auto 1rem;
  }
  
  .pagination-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    gap: 0.3rem;
  }
  
  .pagination-btn span {
    display: none;
  }
  
  .pagination-number {
    min-width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
  
  .filter-btn .filter-count {
    min-width: 20px;
    height: 20px;
    font-size: 0.7rem;
    padding: 0 4px;
  }
}
