/* ========================================
   Card Component Stylesheet
   ======================================== */

/* Base Card Styles */
.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Expertise Cards */
.expertise-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(27, 67, 50, 0.08);
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.expertise-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(27, 67, 50, 0.15);
  border-color: var(--primary-light);
}

.expertise-card .card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.expertise-card h3 {
  color: var(--primary-dark);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.expertise-card p {
  color: var(--gray);
  line-height: 1.6;
}

/* Project Cards */
.project-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(27, 67, 50, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(27, 67, 50, 0.2);
}

.project-card.large {
  grid-column: span 2;
}

.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: var(--light-gray);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-badge,
.project-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary-dark);
  color: var(--white);
  padding: 0.375rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.project-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  color: var(--primary-dark);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.project-content p {
  color: var(--gray);
  margin-bottom: 1rem;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  background: var(--off-white);
  color: var(--primary-medium);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Media Cards */
.media-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(27, 67, 50, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.media-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(27, 67, 50, 0.15);
}

.media-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--light-gray);
}

.media-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.media-card:hover .media-image img {
  transform: scale(1.05);
}

.media-type {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(27, 67, 50, 0.9);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.media-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.media-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
  line-height: 1.3;
}

.media-source {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.media-source img {
  height: 20px;
  width: auto;
}

.media-source span {
  font-size: 0.875rem;
  color: var(--primary-medium);
  font-weight: 500;
}

.media-date {
  font-size: 0.875rem;
  color: var(--gray);
  margin-bottom: 0.75rem;
}

.media-excerpt {
  color: var(--dark-gray);
  line-height: 1.5;
  flex: 1;
}

/* Publication Items */
.publication-item {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(27, 67, 50, 0.05);
  border: 1px solid var(--light-gray);
  transition: all 0.3s ease;
  position: relative;
}

.publication-item:hover {
  box-shadow: 0 6px 20px rgba(27, 67, 50, 0.1);
  border-color: var(--primary-light);
}

.publication-item.featured {
  border-left: 4px solid var(--primary-medium);
  background: linear-gradient(to right, rgba(132, 169, 140, 0.05), transparent);
}

.pub-year-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--primary-light);
  color: var(--white);
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pub-content h3 {
  color: var(--primary-dark);
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.pub-authors {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.pub-journal {
  color: var(--primary-medium);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pub-volume {
  font-weight: 600;
}

.pub-abstract {
  background: var(--off-white);
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
}

.pub-abstract p {
  margin: 0;
  color: var(--dark-gray);
  line-height: 1.6;
}

.pub-metrics {
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0;
}

.pub-metrics .metric {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray);
  font-size: 0.875rem;
}

.pub-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Info Cards */
.info-card {
  background: var(--off-white);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(27, 67, 50, 0.1);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.info-card h3 {
  color: var(--primary-dark);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.info-card p {
  color: var(--gray);
  line-height: 1.5;
}

/* Education Cards */
.education-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(27, 67, 50, 0.05);
  border: 1px solid var(--light-gray);
  transition: all 0.3s ease;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.education-card:hover {
  box-shadow: 0 6px 20px rgba(27, 67, 50, 0.1);
  border-color: var(--primary-light);
  transform: translateX(5px);
}

.edu-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.edu-content h3 {
  color: var(--primary-dark);
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.institution {
  color: var(--primary-medium);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.years {
  color: var(--gray);
  font-size: 0.875rem;
}

/* Research Area Cards */
.research-area {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(27, 67, 50, 0.08);
  transition: all 0.3s ease;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.research-area:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(27, 67, 50, 0.15);
}

.research-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.research-content h3 {
  color: var(--primary-dark);
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.research-content p {
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.research-stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--primary-medium);
}

.research-stats span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* Value Cards */
.value-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(27, 67, 50, 0.08);
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(27, 67, 50, 0.15);
}

.value-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-medium));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

.value-card h3 {
  color: var(--primary-dark);
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

.value-card p {
  color: var(--gray);
  line-height: 1.6;
}

/* Stats Cards */
.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  color: var(--white);
}

/* Timeline Cards */
.timeline-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(132, 169, 140, 0.3);
}

.timeline-content {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(27, 67, 50, 0.08);
  border-left: 3px solid var(--primary-light);
}

.timeline-content h3 {
  color: var(--primary-dark);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.timeline-content h4 {
  color: var(--primary-medium);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--gray);
  line-height: 1.5;
}

/* Impact Metric Cards */
.impact-metric-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(27, 67, 50, 0.08);
  transition: all 0.3s ease;
}

.impact-metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(27, 67, 50, 0.15);
}

.metric-icon {
  font-size: 2.5rem;
  color: var(--primary-medium);
  margin-bottom: 1rem;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.metric-label {
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.metric-growth {
  color: var(--success);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .project-card.large {
    grid-column: span 1;
  }
  
  .pub-year-badge {
    position: static;
    display: inline-block;
    margin-bottom: 0.5rem;
  }
  
  .research-area,
  .education-card {
    flex-direction: column;
    text-align: center;
  }
  
  .research-icon,
  .edu-icon {
    margin: 0 auto;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}