/* ADD THESE STYLES to site.css */
/* ADD THESE STYLES to site.css */

/* Enhanced Team Styles */
.team {
  background-color: #fff;
  border: 1px solid #f0f0f0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.4s ease;
  position: relative;
}

.team .position-relative {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  overflow: hidden;
}

.team img {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  border: 4px solid #f8f9fa;
  transition: all 0.4s ease;
  object-fit: cover;
  object-position: center top;
}

.team:hover {
  transform: translateY(-7px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: #e8e8e8;
}

.team:hover img {
  transform: scale(1.05);
  border-color: #c8102e;
}

.team .overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  transition: all 0.5s ease;
  pointer-events: none;
}

.team:hover .overlay {
  opacity: 0.1;
}

.team .title {
  color: #c8102e;
  font-size: 1.6rem;
  font-weight: 900;
  margin-top: 15px;
}

.team .member-position {
  display: block;
  font-size: 1.2rem;
  font-weight: 1000;
  letter-spacing: 0.5px;
  margin-top: 5px;
  color: #666;
}

.team .content {
  padding: 0 10px;
}

.team .content p {
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 700;
  margin-top: 15px;
  color: black;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .team {
    margin-bottom: 30px;
  }

  .team .position-relative {
    width: 140px;
    height: 140px;
  }

  .team img {
    width: 140px;
    height: 140px;
  }
}


/* ISU Red accent for hover effects */
.team:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #c8102e;
  transition: width 0.4s ease;
}

.team:hover:after {
  width: 100%;
}

/* ISU Red accent for hover effects */
.team:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #c8102e;
  transition: width 0.4s ease;
}

.team:hover:after {
  width: 100%;
}

.social-icon.social li a {
  color: #adb5bd;
  border-color: #adb5bd;
}

.social-icon li a {
  color: #35404e;
  border: 1px solid #35404e;
  display: inline-block;
  height: 32px;
  text-align: center;
  font-size: 15px;
  width: 32px;
  line-height: 30px;
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
}

.rounded {
  border-radius: 5px !important;
}

.para-desc {
  max-width: 600px;
}

.text-muted {
  color: #8492a6 !important;
}

.section-title .title {
  letter-spacing: 0.5px;
  font-size: 30px;
}

/* Add smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Add spacing between document sections */
.document-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

/* Improve document summary readability */
.document-summary {
  margin: 0.5rem 0 1.5rem;
  color: #666;
  line-height: 1.6;
}

/* Add hover effect for document links */
.document-link {
  transition: color 0.3s ease;
}

.document-link:hover {
  color: #c00;
  text-decoration: none;
}

.project-introduction {
  margin: 2rem auto;
  max-width: 800px;
  line-height: 1.6;
  color: #333;
}

.project-introduction ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.project-introduction li {
  margin-bottom: 0.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.pdf-link-container {
  position: relative;
  display: inline-block;
}

.pdf-preview {
  position: absolute;
  top: -300px;
  left: 100px;
  width: 400px;
  height: 300px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  border: 1px solid #ccc;
  z-index: 1000;
  background-color: white;
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.pdf-link-container:hover .pdf-preview {
  display: block;
  opacity: 1;
}

.pdf-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #f5f5f5;
}

.pdf-link {
  color: #c8102e;
  /* ISU red */
  text-decoration: none;
  font-weight: 500;
}

.pdf-link:hover {
  text-decoration: underline;
}

.pdf-indicator {
  font-size: 0.8em;
  color: #666;
  margin-left: 5px;
}

.document-summary {
  margin-top: 5px;
  color: #555;
}

/* Added styles for the reports table */
.reports-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.reports-table th,
.reports-table td {
  padding: 10px;
  border: 1px solid #ddd;
}

.reports-table th {
  background-color: #f2f2f2;
  text-align: left;
}

/* Added styles for timeline */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background-color: #c8102e;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline-container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-container::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: white;
  border: 4px solid #c8102e;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid #ddd;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #ddd;
}

.right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid #ddd;
  border-width: 10px 10px 10px 0;
  border-color: transparent #ddd transparent transparent;
}

.right::after {
  left: -16px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: white;
  position: relative;
  border-radius: 6px;
  border: 1px solid #ddd;
}

/* Footer styles */
footer {
  margin-top: 50px;
  padding: 20px 0;
  background-color: #f8f8f8;
  border-top: 1px solid #e7e7e7;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  min-width: 300px;
  padding: 0 15px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }

  .timeline-container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-container::before {
    left: 60px;
    border-width: 10px 10px 10px 0;
    border-color: transparent #ddd transparent transparent;
  }

  .left::after,
  .right::after {
    left: 15px;
  }

  .right {
    left: 0%;
  }
}

/* Skip to content link for accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: #c8102e;
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-to-content:focus {
  top: 0;
}

/* Add a back-to-top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #c8102e;
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
}

.back-to-top:hover {
  background: #9c0c22;
  color: white;
}

/* Weekly Reports Flex Layout */
.weekly-reports-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-top: 20px;
}

.weekly-reports-table-container {
  flex: 1;
  min-width: 300px;
}

.weekly-reports-preview-container {
  flex: 1;
  min-width: 300px;
  position: relative;
  height: 500px;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  background-color: #f9f9f9;
}

.preview-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
  z-index: 1;
}

.placeholder-content {
  text-align: center;
  color: #666;
}

.placeholder-content i {
  font-size: 48px;
  margin-bottom: 10px;
  color: #c8102e;
}

.preview-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.preview-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.weekly-report-link {
  color: #c8102e;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}

.weekly-report-link:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .weekly-reports-container {
    flex-direction: column;
  }

  .weekly-reports-preview-container {
    height: 400px;
    margin-top: 20px;
  }
}

/* Weekly Reports Flex Layout */
.weekly-reports-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-top: 20px;
}

.weekly-reports-table-container {
  flex: 1;
  min-width: 300px;
}

.weekly-reports-preview-container {
  flex: 1;
  min-width: 300px;
  position: relative;
  height: 500px;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  background-color: #f9f9f9;
}

.preview-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
  z-index: 1;
}

.placeholder-content {
  text-align: center;
  color: #666;
}

.placeholder-content i {
  font-size: 48px;
  margin-bottom: 10px;
  color: #c8102e;
}

.preview-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.preview-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.weekly-report-title {
  color: #c8102e;
  cursor: pointer;
  display: inline-block;
  font-weight: 500;
  text-decoration: none;
}

.reports-table tr:hover .weekly-report-title {
  text-decoration: underline;
}

.reports-table tr {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.reports-table tr:hover {
  background-color: #f8f8f8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .weekly-reports-container {
    flex-direction: column;
  }

  .weekly-reports-preview-container {
    height: 400px;
    margin-top: 20px;
  }
}

/* Styles for the document sections layout */
.documents-container {
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
  margin-bottom: 50px;
}

.section-title {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #c8102e;
}

.documents-links {
  flex: 1;
  min-width: 300px;
  padding-right: 25px;
}

.documents-links section {
  margin-bottom: 40px;
}

.documents-links h2 {
  border-bottom: 2px solid #c8102e;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.sticky-preview-container {
  flex: 1;
  min-width: 350px;
  position: relative;
  padding-left: 25px;
  border-left: 1px solid #eee;
  min-height: 700px;
  /* Ensure container has enough height */
}

.sticky-preview {
  position: relative;
  /* Start as relative */
  width: 100%;
  height: calc(100vh - 20px);
  /* Full viewport height minus header offset */
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: #f8f8f8;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 10;
  /* Ensure it appears above other content */
}

/* Sticky class applied via JavaScript when appropriate */
.sticky-preview.is-sticky {
  position: fixed;
  top: 20px;
  height: calc(100vh - 20px);
  /* Full viewport height minus header offset */
  max-height: calc(100vh - 20px - 70px);
  /* Account for potential footer space */
  padding-top: 0;
  /* Adjust based on container width */
}

/* For when it reaches the bottom */
.sticky-preview.at-bottom {
  position: absolute;
  bottom: 20px;
  top: auto;
  height: calc(100vh - 20px - 70px);
  /* Account for footer space */
}

.sticky-preview iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.sticky-preview-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: #666;
  font-size: 1.2em;
  background-color: #f9f9f9;
}

.sticky-preview-placeholder i {
  font-size: 4em;
  margin-bottom: 20px;
  color: #c8102e;
}

.pdf-preview {
  display: none;
}

.pdf-link-container {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #eee;
  border-left: 4px solid #c8102e;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
  width: 90%;
  background-color: #fff;
}

.pdf-link-container:hover {
  background-color: #f9f9f9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transform: translateX(3px);
}

.pdf-link-container.active-pdf {
  background-color: #f9f9f9;
  border-left: 1em solid #c8102e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pdf-link {
  font-weight: 500;
  color: #c8102e;
  text-decoration: none;
  display: inline-block;
}

.pdf-link:hover {
  text-decoration: underline;
}

.pdf-indicator {
  font-size: 0.85em;
  color: #666;
  margin-left: 5px;
}

.document-summary {
  margin-top: 10px;
  font-size: 0.95em;
  color: #555;
  line-height: 1.5;
}

/* Add a loading indicator for the iframe */
.sticky-preview::after {
  content: "Loading preview...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #666;
  font-size: 1.1em;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.sticky-preview.loading::after {
  opacity: 1;
}

#designdocuments,
#lightning-talks,
#engineering-standards,
#testing {
  scroll-margin-top: 80px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .documents-container {
    flex-direction: column;
  }

  .sticky-preview-container {
    margin-top: 40px;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid #eee;
    padding-top: 30px;
  }

  .documents-links {
    padding-right: 0;
  }

  .sticky-preview {
    height: 500px;
    position: static !important;
    /* Disable sticky on mobile */
    width: 100% !important;
  }

  .sticky-preview.is-sticky,
  .sticky-preview.at-bottom {
    position: static;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .sticky-preview {
    height: 400px;
  }
}

/* Project Information Section */
#projectinfo {
  background-color: #f9f9f9;
  padding: 40px 20px;
  margin: 40px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#projectinfo h2 {
  color: #c8102e;
  border-bottom: 3px solid #c8102e;
  padding-bottom: 15px;
  margin-bottom: 30px;
  font-weight: 700;
}

.info-card {
  background-color: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 6px;
  border-left: 4px solid #c8102e;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.info-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateX(3px);
}

.info-card h4 {
  color: #333;
  margin-bottom: 10px;
  font-size: 1.1em;
  font-weight: 600;
}

.info-card h4 i {
  color: #c8102e;
  margin-right: 8px;
  width: 20px;
  text-align: center;
}

.info-card p {
  color: #555;
  margin: 0;
  font-size: 1em;
}

.info-card a {
  color: #c8102e;
  text-decoration: none;
  transition: color 0.2s ease;
}

.info-card a:hover {
  color: #9c0c22;
  text-decoration: underline;
}

/* Responsive adjustments for project info */
@media (max-width: 768px) {
  #projectinfo {
    padding: 30px 15px;
    margin: 30px 0;
  }

  .info-card {
    padding: 15px;
  }
}

/* GitHub and Markdown link styles */
.github-link,
.markdown-link {
  display: inline-block;
  margin-left: 8px;
  color: #666;
  text-decoration: none;
  font-size: 1.1em;
  transition: color 0.2s ease, transform 0.2s ease;
  vertical-align: middle;
}

.github-link i,
.markdown-link i {
  font-size: 1em;
  vertical-align: middle;
}

.github-link:hover {
  color: #333;
  transform: scale(1.15);
  text-decoration: none;
}

.markdown-link:hover {
  color: #c8102e;
  transform: scale(1.15);
  text-decoration: none;
}

/* Team member GitHub profile links */
.team-github-link {
  display: inline-block;
  color: #666;
  font-size: 1.2em;
  margin-top: 8px;
  margin-right: 8px;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.team-github-link:hover {
  color: #333;
  transform: scale(1.15);
  text-decoration: none;
}

.team-github-link i {
  pointer-events: none;
}

/* Team member personal website links */
.team-website-link {
  display: inline-block;
  color: #666;
  font-size: 1.2em;
  margin-top: 8px;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.team-website-link:hover {
  color: #c8102e;
  transform: scale(1.15);
  text-decoration: none;
}

.team-website-link i {
  pointer-events: none;
}

/* Ensure proper spacing when multiple icons appear together */
.github-link + .markdown-link {
  margin-left: 6px;
}

/* Additional styling for icon links in document sections */
.pdf-link-container .github-link {
  margin-left: auto;
  font-size: 1em;
}

.pdf-link-container .markdown-link {
  margin-left: 10px;
  font-size: 1em;
}

/* Responsive adjustments for icon links */
@media (max-width: 768px) {
  .github-link,
  .markdown-link {
    font-size: 1em;
    margin-left: 6px;
  }

  .github-link + .markdown-link {
    margin-left: 5px;
  }
}
