
/*https://github.com/quarto-dev/quarto-web/blob/main/index.css*/
/*#447099*/

/* Remove space below navbar */
body {
  padding-top: 0 !important;
}

.hero-left img {
  border-radius: 8px;  /* adjust to your liking */
}

.hero-header {
  margin-top: 0px; /* Remove top margin completely */
}

.background-frame {
  padding-bottom: 1rem;
}

.button {
  text-align: center;
  padding-bottom: 10px;
}

.hero-banner {
  position: relative;
  background-color: rgb(240,245,249);
  display: flex;
  justify-content: center;
}


.alt-background {
  background-color: rgb(247,249,251);
  border-top: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
}


.btn-action-primary {
  color: white;
  background-color: #05336B !important;
}

.btn-action-primary:hover {
  color: white;
}

.btn-action {
  min-width: 165px;
  border-radius: 30px;
  border: none;
}



.content-block {
  padding-top: 20px;
  padding-bottom: 10px;
  margin-left: 30px;
  margin-right: 30px;
}


@media(min-width: 900px) {
.content-block {
  margin-left: 50px;
  margin-right: 50px;
}
}

@media (min-width: 1200px) {
.content-block {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
}


.pdf-wrapper-16x9 {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 = 9/16 = 0.5625 */
}

.pdf-wrapper-16x9 iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/*ChatGPT*/
span.__dimensions_badge_embed__, div.altmetric-embed {
  display: inline-flex;
  vertical-align: middle;
}

/*https://stackoverflow.com/questions/35814653/automatic-height-when-embedding-a-youtube-video*/

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/*https://www.w3schools.com/howto/howto_css_responsive_iframes.asp*/

.container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 75%; /* 56.25% if 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}
  
/* Then style the iframe to fit in the container div with full height and width */
.responsive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

/* css styles */


.reveal h1 {
font-size: 64px;
}

/* source: https://github.com/hakimel/reveal.js/issues/1897 */
.reveal h2 {
text-align: center;
}

.reveal .centeralign {
text-align: center;
}

.reveal .slide div.aside {
font-size: 12px;
}

.reveal .scrollable {
    height: 700px;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}


/* =====================================================
   HOMEPAGE: RESEARCH ACHIEVEMENTS AND FINDINGS
   ===================================================== */

/* Section headings */

.homepage-section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #05336B;
  margin-top: 15px;
  margin-bottom: 25px;
}

.homepage-section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: #555;
  max-width: 750px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}


/* =====================================================
   B. RESEARCH ACHIEVEMENTS
   ===================================================== */

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 20px 0 35px 0;
}

.achievement-card {
  background: #ffffff;
  border: 1px solid #e0e6ed;
  border-radius: 12px;

  padding: 25px 15px;

  text-align: center;
  text-decoration: none !important;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.achievement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(5, 51, 107, 0.12);
}

.achievement-number {
  font-size: 2rem;
  font-weight: 800;
  color: #05336B;
  line-height: 1.2;
  margin-bottom: 12px;
}

.achievement-title {
  font-size: 1rem;
  font-weight: 700;
  color: #25364a;
  margin-bottom: 8px;
}

.achievement-detail {
  font-size: 0.82rem;
  color: #66788a;
  line-height: 1.5;
}




/* =====================================================
   RESEARCH FINDINGS CAROUSEL — FULL-WIDTH CARDS
   ===================================================== */

/* Carousel occupies the full content width */
.findings-carousel {
  --card-gap: 22px;
  --visible-cards: 3;

  position: relative;
  display: block;
  width: 100%;
  margin: 0 auto;
}

/* Viewport no longer reserves space for arrows */
.findings-viewport {
  width: 100%;
  overflow: hidden;
  padding: 12px 0px 25px;
  box-sizing: border-box;
}

/* Horizontal sliding track */
.findings-carousel .findings-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--card-gap);
  width: 100%;
  margin: 0;
  align-items: stretch;

  animation: none !important;
  transition: transform 0.45s ease;
}

/* Three full-width cards */
.findings-carousel .finding-card {
  flex: 0 0 calc(
    (100% - (var(--visible-cards) - 1) * var(--card-gap))
    / var(--visible-cards)
  );
  min-width: 0;
  box-sizing: border-box;
}

/* =====================================================
   ARROWS — OVERLAY ON OUTER CARD EDGES
   ===================================================== */

.findings-prev,
.findings-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  display: flex;
  justify-content: center;
  align-items: center;

  width: 44px;
  height: 44px;
  padding: 0;

  border: 1px solid #dce4ed;
  border-radius: 50%;

  background: #ffffff;
  color: #05336B;

  font-size: 24px;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;

  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);

  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

/* Center arrows on outer card edges */
.findings-prev {
  left: -8px;
  transform: translate(-50%, -50%);
}

.findings-next {
  right: -8px;
  transform: translate(50%, -50%);
}

/* Hover */
.findings-prev:hover,
.findings-next:hover {
  background: #05336B;
  color: #ffffff;
  box-shadow: 0 5px 16px rgba(5, 51, 107, 0.2);
}

/* Keyboard focus */
.findings-prev:focus-visible,
.findings-next:focus-visible {
  outline: 3px solid #1765a5;
  outline-offset: 3px;
}

/* Hide buttons when JS determines no navigation needed */
.findings-prev[hidden],
.findings-next[hidden] {
  display: none !important;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* Tablet: two cards */
@media (max-width: 992px) {
  .findings-carousel {
    --visible-cards: 2;
    --card-gap: 18px;
  }
}

/* Mobile: one card */
@media (max-width: 600px) {
  .findings-carousel {
    --visible-cards: 1;
    --card-gap: 16px;
  }

  .findings-prev,
  .findings-next {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .findings-carousel .findings-grid {
    transition: none;
  }
}



/* Entire card is clickable */

.finding-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e0e6ed;
  border-top: 4px solid #05336B;
  border-radius: 12px;
  padding: 25px;
  min-width: 0;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* Remove default hyperlink styling */

.finding-card:link,
.finding-card:visited,
.finding-card:hover,
.finding-card:active {
  text-decoration: none !important;
  color: inherit !important;
}

/* Hover effects */

.finding-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(5, 51, 107, 0.12);
}

.finding-card:hover h3 {
  color: #1765a5;
}

/* Research category */

.finding-category {
  font-size: 0.78rem;
  font-weight: 700;
  color: #49749a;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Highlighted research finding */

.finding-number {
  font-size: 2rem;
  font-weight: 800;
  color: #05336B;
  line-height: 1.2;
  margin-bottom: 12px;
}

/* Research title */

.finding-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #25364a;
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 15px;
  transition: color 0.2s ease;
}

/* Research description */

.finding-card p {
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.7;
  color: #4c5968;
  margin-top: 0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Journal and publication year */

.finding-source {
  font-size: 0.82rem;
  color: #7a8795;
  line-height: 1.5;
  margin-top: auto;
  margin-bottom: 0;
}

.finding-source i,
.finding-source em {
  font-style: italic;
}

/* Keyboard accessibility */

.finding-card:focus-visible {
  outline: 3px solid #1765a5;
  outline-offset: 3px;
}

/* Remove all hyperlink underlines from Featured Research cards */

a.finding-card,
a.finding-card:link,
a.finding-card:visited,
a.finding-card:hover,
a.finding-card:active,
a.finding-card:focus,
a.finding-card *,
a.finding-card:hover * {
  text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: none !important;
}

/* Preserve text colors */

a.finding-card .finding-category {
  color: #49749a !important;
}

a.finding-card .finding-number {
  color: #05336B !important;
}

a.finding-card h3 {
  color: #25364a !important;
}

a.finding-card p {
  color: #4c5968 !important;
}

a.finding-card .finding-source {
  color: #7a8795 !important;
}

/* Optional: Highlight title on hover */

a.finding-card:hover h3 {
  color: #1765a5 !important;
}

/* Keep visible keyboard focus */

a.finding-card:focus-visible {
  outline: 3px solid #1765a5;
  outline-offset: 3px;
}


/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

/* Tablets */

@media (max-width: 992px) {

  .achievement-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .findings-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* Mobile */

@media (max-width: 600px) {

  .achievement-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .findings-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .achievement-card {
    padding: 22px 15px;
  }

  .finding-card {
    padding: 22px;
  }

  .achievement-number,
  .finding-number {
    font-size: 1.8rem;
  }

  .homepage-section-title {
    font-size: 26px;
  }

}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {

  .achievement-card,
  .finding-card {
    transition: none;
  }

}
