/* Index Page Custom Styles */

.home-container {
  font-family: 'Lora', 'Times New Roman', serif;
  line-height: 1.6;
}

/* Introduction Section */
.introduction-section {
  margin-bottom: 60px;
  padding: 40px 0;
  border-bottom: 2px solid #f0f0f0;
}

.profile-photo-container {
  padding: 20px;
}

.profile-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 4px solid #008AFF;
  box-shadow: 0 4px 12px rgba(0, 136, 255, 0.2);
  margin-bottom: 20px;
  transition: transform 0.3s;
}

.profile-photo:hover {
  transform: scale(1.05);
}

.profile-photo-container h2 {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 800;
  color: #404040;
  margin: 15px 0 10px 0;
  font-size: 22px;
}

.current-title {
  font-size: 16px;
  color: #666;
  line-height: 1.4;
  margin-bottom: 25px;
}

.quick-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-links .btn {
  border-radius: 20px;
  font-size: 14px;
}

.bio-content h3 {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: #404040;
  margin-bottom: 25px;
  border-left: 4px solid #008AFF;
  padding-left: 15px;
}

.bio-text {
  margin-bottom: 20px;
  text-align: justify;
  font-size: 16px;
  color: #555;
}

.research-interests {
  margin-top: 30px;
}

.research-interests h4 {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 600;
  color: #404040;
  margin-bottom: 15px;
}

.interests-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest-tag {
  background-color: #e7f3ff;
  color: #0066cc;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #cce7ff;
}

/* News Section */
.news-section {
  margin-bottom: 50px;
}

.section-header {
  margin-bottom: 30px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.section-header h3 {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: #404040;
  margin: 0;
}

.section-header h3 i {
  color: #008AFF;
  margin-right: 10px;
}

.news-container {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.news-item {
  display: flex;
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #008AFF;
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-item:hover {
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-item.placeholder {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  opacity: 0.8;
}

.news-date {
  min-width: 120px;
  font-weight: 600;
  color: #008AFF;
  font-size: 14px;
  padding-top: 2px;
}

.news-content {
  flex: 1;
  font-size: 15px;
  color: #555;
}

/* Publications Section */
.publications-section {
  margin-bottom: 50px;
}

.publications-list {
  margin-bottom: 30px;
}

.publication-item {
  margin-bottom: 30px;
  padding: 25px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  transition: transform 0.3s, box-shadow 0.3s;
}

.publication-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.publication-title {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #404040;
  margin-bottom: 8px;
  line-height: 1.3;
}

.publication-authors {
  color: #666;
  font-size: 15px;
  margin-bottom: 10px;
  font-style: italic;
}

.publication-venue {
  color: #008AFF;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 15px;
}

.publication-venue i {
  margin-right: 5px;
}

.publication-links {
  display: flex;
  gap: 15px;
}

.pub-link {
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s;
  border: 1px solid;
}

.pub-link.pdf-link {
  background-color: #dc3545;
  color: white;
  border-color: #dc3545;
}

.pub-link.pdf-link:hover {
  background-color: #c82333;
  color: white;
  text-decoration: none;
}

.pub-link.code-link {
  background-color: #333;
  color: white;
  border-color: #333;
}

.pub-link.code-link:hover {
  background-color: #222;
  color: white;
  text-decoration: none;
}

.pub-link i {
  margin-right: 5px;
}

.publications-more {
  text-align: center;
  margin-top: 20px;
}

/* Quick Access Section */
.quick-access-section {
  margin-bottom: 50px;
  padding: 40px 0;
  background-color: #f8f9fa;
  border-radius: 15px;
}

.access-card {
  text-align: center;
  padding: 30px 20px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-icon {
  font-size: 36px;
  color: #008AFF;
  margin-bottom: 20px;
}

.access-card h4 {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 600;
  color: #404040;
  margin-bottom: 15px;
}

.access-card p {
  color: #666;
  margin-bottom: 20px;
  font-size: 15px;
}

/* Statistics Section */
.stats-section {
  margin-bottom: 30px;
}

.stats-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.stats-visualization {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 30px;
  background-color: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #008AFF;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.visitor-map {
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.visitor-map h4 {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 600;
  color: #404040;
  margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .introduction-section .row {
    flex-direction: column;
    text-align: center;
  }
  
  .introduction-section .col-md-3,
  .introduction-section .col-md-9 {
    width: 100%;
  }
  
  .profile-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px auto;
  }
  
  .quick-links {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .quick-links .btn {
    margin: 5px;
  }
  
  .news-item {
    flex-direction: column;
    text-align: center;
  }
  
  .news-date {
    margin-bottom: 8px;
    text-align: center;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
  }
  
  .stats-visualization {
    flex-direction: column;
    gap: 20px;
  }
  
  .publication-links {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .access-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .introduction-section {
    padding: 20px 0;
  }
  
  .publication-item {
    padding: 20px 15px;
  }
  
  .stats-visualization {
    padding: 20px 15px;
  }
  
  .interests-tags {
    justify-content: center;
  }
  
  .stat-number {
    font-size: 28px;
  }
}

/* Scrollbar styling for news section */
.news-container::-webkit-scrollbar {
  width: 6px;
}

.news-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.news-container::-webkit-scrollbar-thumb {
  background: #008AFF;
  border-radius: 3px;
}

.news-container::-webkit-scrollbar-thumb:hover {
  background: #0056b3;
}

/* Animation classes */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.publication-item {
  animation: fadeInUp 0.6s ease-out;
}

.publication-item:nth-child(1) { animation-delay: 0.1s; }
.publication-item:nth-child(2) { animation-delay: 0.2s; }
.publication-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
