/* =========================================================
   100RE LABORATORY - SPECIALIZED PAGES STYLESHEET
   Design Language: Academic, Clean, Modern Square Corners (border-radius: 0px)
   ========================================================= */

/* 1. Page Hero Banner */
.page-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 60px 0 50px;
  position: relative;
  border-bottom: 3px solid #16a34a;
}

.page-hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  color: #ffffff;
}

.page-hero-title span {
  color: #4ade80;
}

.page-hero-desc {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 760px;
  line-height: 1.6;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 14px;
}

.breadcrumb-nav a {
  color: #4ade80;
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
  color: #86efac;
}

/* 2. Stats Grid (Home / About) */
.stats-section {
  background: #f8fafc;
  padding: 45px 0;
  border-bottom: 1px solid #e2e8f0;
}

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

.stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #16a34a;
  padding: 28px 20px;
  text-align: center;
  border-radius: 0px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-top-color: #15803d;
}

.stat-number {
  font-family: 'Oswald', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #16a34a;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.75px;
}

/* 3. Research Areas Grid & Detail Cards */
.research-areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  margin-top: 30px;
}

.research-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #16a34a;
  border-radius: 0px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.research-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-top-color: #15803d;
}

.research-card-header {
  padding: 20px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 16px;
}

.research-card-icon {
  width: 50px;
  height: 50px;
  background: #16a34a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  border-radius: 0px;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.research-card:hover .research-card-icon {
  transform: scale(1.08) rotate(3deg);
  background: #15803d;
}

.research-card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.research-card-leader {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}

.research-card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.research-card-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
}

.research-topics-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.research-topics-list li {
  font-size: 0.875rem;
  color: #334155;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.research-topics-list li i {
  color: #16a34a;
  font-size: 0.8rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* 4. Timeline (Research Experiences) */
.timeline-wrap {
  position: relative;
  max-width: 900px;
  margin: 40px auto 0;
  padding-left: 36px;
}

.timeline-wrap::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #cbd5e1;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

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

.timeline-marker {
  position: absolute;
  left: -36px;
  top: 0;
  width: 23px;
  height: 23px;
  border-radius: 0px;
  background: #16a34a;
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 2px #16a34a;
  transition: transform 0.25s ease;
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.2);
  background: #15803d;
}

.timeline-content {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #16a34a;
  padding: 24px;
  border-radius: 0px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline-content:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(6px);
}

.timeline-year {
  display: inline-block;
  background: #f0fdf4;
  color: #16a34a;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border: 1px solid #bbf7d0;
  border-radius: 0px;
  margin-bottom: 8px;
}

.timeline-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.timeline-institution {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
}

/* 5. Publications List & Control Bar */
.pub-control-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 24px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input-wrapper i.search-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 1rem;
  pointer-events: none;
}

.search-input-field {
  width: 100%;
  padding: 12px 42px 12px 40px;
  font-size: 0.95rem;
  border: 2px solid #e2e8f0;
  border-radius: 0px;
  outline: none;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.search-input-field:focus {
  border-color: #16a34a;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 6px;
  display: none;
}

.search-clear-btn:hover {
  color: #ef4444;
}

.filter-badge-count {
  font-size: 0.725rem;
  font-weight: 700;
  padding: 1px 6px;
  background: #e2e8f0;
  color: #475569;
  border-radius: 0px;
  margin-left: 4px;
}

.filter-btn.active .filter-badge-count {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pub-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #16a34a;
  padding: 22px 26px;
  border-radius: 0px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pub-item:hover {
  box-shadow: var(--shadow-md);
  border-left-color: #15803d;
  transform: translateX(4px);
}

.pub-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.pub-badge-category {
  background: #f0fdf4;
  color: #16a34a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border: 1px solid #bbf7d0;
  border-radius: 0px;
}

.pub-badge-quartile {
  background: #fef2f2;
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border: 1px solid #fecaca;
  border-radius: 0px;
}

.pub-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
}

.pub-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 8px;
}

.pub-authors {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 6px;
}

.pub-venue {
  font-size: 0.875rem;
  color: #64748b;
  font-style: italic;
  margin-bottom: 12px;
}

.pub-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.pub-link-btn {
  font-size: 0.825rem;
  font-weight: 700;
  color: #16a34a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 5px 12px;
  border-radius: 0px;
  transition: all 0.2s ease;
}

.pub-link-btn:hover {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
}

/* 6. Empty State Component */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 0px;
  margin: 20px 0;
}

.empty-state-icon {
  font-size: 3.2rem;
  color: #94a3b8;
  margin-bottom: 14px;
}

.empty-state-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  color: #0f172a;
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 0.925rem;
  color: #64748b;
  max-width: 480px;
  margin: 0 auto 18px;
  line-height: 1.5;
}

.btn-reset-filters {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border: none;
  border-radius: 0px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-reset-filters:hover {
  background: #15803d;
}

/* 7. Partner Grids (Collaborations) */
.partner-section-block {
  margin-bottom: 50px;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.partner-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 24px 16px;
  text-align: center;
  border-radius: 0px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  box-shadow: var(--shadow-sm);
}

.partner-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #16a34a;
  transform: translateY(-4px);
}

.partner-logo-icon {
  font-size: 2.2rem;
  color: #16a34a;
  margin-bottom: 12px;
  transition: transform 0.25s ease;
}

.partner-card:hover .partner-logo-icon {
  transform: scale(1.15);
}

.partner-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.partner-type {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 4px;
}

/* 8. Achievements & Projects Cards */
.cards-grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 28px;
}

.project-card, .achievement-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #16a34a;
  padding: 28px;
  border-radius: 0px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.project-card:hover, .achievement-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-top-color: #15803d;
}

.card-header-badge {
  display: inline-block;
  align-self: flex-start;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 0px;
}

.card-item-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.card-item-org {
  font-size: 0.88rem;
  font-weight: 600;
  color: #16a34a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-item-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
}

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 10px;
}

.card-tag {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 0px;
}

/* 9. Journey & News Grids */
.news-grid, .journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.news-card, .journey-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.news-card:hover, .journey-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.news-img-wrap, .journey-img-wrap {
  width: 100%;
  height: 210px;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
}

.news-img, .journey-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-img, .journey-card:hover .journey-img {
  transform: scale(1.06);
}

.news-card-body, .journey-card-body {
  padding: 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-date, .journey-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-title, .journey-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.news-excerpt, .journey-excerpt {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.55;
  flex-grow: 1;
}

/* 10. Equipment Grid */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.equipment-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #16a34a;
  padding: 22px;
  border-radius: 0px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.equipment-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-top-color: #15803d;
}

.equipment-icon-wrap {
  width: 46px;
  height: 46px;
  background: #f0fdf4;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  border-radius: 0px;
}

.equipment-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
}

.equipment-model {
  font-size: 0.8rem;
  font-weight: 700;
  color: #16a34a;
  background: #f0fdf4;
  padding: 2px 8px;
  display: inline-block;
  align-self: flex-start;
}

.equipment-specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.84rem;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.equipment-specs-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #f1f5f9;
  padding-bottom: 4px;
}

.equipment-specs-list li strong {
  color: #1e293b;
}

/* 11. Photo Gallery & Enhanced Lightbox */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  height: 230px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, transparent 100%);
  color: #ffffff;
  padding: 28px 16px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-caption-overlay {
  transform: translateY(0);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox-modal.active {
  display: flex;
  animation: fadeIn 0.25s ease-out;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border: 2px solid #334155;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.lightbox-caption-wrap {
  margin-top: 14px;
  text-align: center;
}

.lightbox-caption {
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 600;
}

.lightbox-counter {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 3px;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.15);
  color: #ef4444;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-nav-btn:hover {
  background: #16a34a;
  border-color: #16a34a;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.prev {
  left: -65px;
}

.lightbox-nav-btn.next {
  right: -65px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-grid-2col {
    grid-template-columns: 1fr;
  }
  .page-hero-title {
    font-size: 2.1rem;
  }
  .lightbox-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .lightbox-nav-btn.prev { left: 10px; }
  .lightbox-nav-btn.next { right: 10px; }
}
