/* STUDENT PROJECTS PAGE */

/* "Project at a glance" callout, recolored to the site green */
.project-glance.callout.callout-style-default.callout-note {
  border-left-color: #589484;
}

.project-glance.callout.callout-style-default.callout-note > .callout-header {
  background-color: #e6f0ed;
  font-size: 18px;
}

.project-glance.callout .callout-body > p {
  margin-bottom: 0.6rem;
}

.project-glance.callout .callout-body ul {
  margin-top: 0.25rem;
  margin-bottom: 0.6rem;
}

/* Research report / presentation: abstract beside a thumbnail card */
.project-doc {
  align-items: start;
  margin-bottom: 1rem;
}

.project-doc-card {
  text-align: center;
}

.project-doc-card img {
  border: 1px solid #cccccc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  max-width: 100%;
  transition: transform 0.15s ease-in-out;
}

.project-doc-card a:hover img {
  transform: translateY(-2px);
}

/* Download button under each thumbnail */
.pdf-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.75rem;
}

.pdf-actions a {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  color: white;
  background-color: #156082;
  font-size: 14px;
}

.pdf-actions a:hover {
  color: white;
  background-color: #2747a3;
}

.pdf-actions a i {
  margin-right: 5px;
}

/* Collapsible in-page PDF viewer */
.project-embed {
  margin-bottom: 2rem;
}

.project-embed summary {
  cursor: pointer;
  font-weight: 600;
  color: #156082;
  padding: 0.5rem 0;
}

.project-embed summary:hover {
  text-decoration: underline;
}

.project-embed iframe {
  width: 100%;
  height: 75vh;
  min-height: 500px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  margin-top: 0.5rem;
}

/* Phones and tablets render only the first page of an embedded PDF, so
   hide the viewer there; the download button still works */
@media (max-width: 767.98px), (hover: none) {
  .project-embed {
    display: none;
  }
}
