@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #1f2933;
  --muted: #4b5563;
  --accent: #2d6cdf;
  --accent-strong: #1e4fb1;
  --radius: 12px;
  --nav-height: clamp(44px, 4.75vw, 60px);
}

html {
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1em;
  color: var(--text);
  line-height: 1.65;
  word-wrap: break-word;
  background: var(--surface);
}

body {
  margin: 0;
  padding-top: calc(var(--nav-height) + 0.25rem);
  background: var(--surface);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.5em 0.9em;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  z-index: 1000;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(45, 108, 223, 0.2);
  transition: top 0.2s ease, opacity 0.2s ease;
  opacity: 0;
}

.skip-link:focus-visible {
  top: 0.5rem;
  opacity: 1;
}

nav {
  position: fixed;
  top: 0;
  z-index: 999;
  margin: 0;
  padding: 0.1em 0;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg);
  white-space: nowrap;
  overflow: visible; /* allow dropdown to extend beyond nav */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(6px);
}

.nav-inner {
  display: flex;
  align-items: center;
  column-gap: 1.1em;
  max-width: min(56em, 95vw);
  margin: 0 auto;
  padding: 0 1.1em;
  box-sizing: border-box;
  width: 100%;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
  margin-left: auto;
}

nav>h1 {
  font-size: 1em;
  font-weight: bold;
  padding: 0.2em 0;
  margin: 0;
  display: inline-block;
}

#menu {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  column-gap: 1em;
}

#menu li {
  padding: 0;
  display: inline-block;
}

nav a {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.25em 0;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

nav a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.92em;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.35em 0.55em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
}

.lang-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  margin: 0;
  padding: 0.4em;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  min-width: 180px;
  z-index: 1000;
}

.language-switcher.open .lang-menu {
  display: block;
}

.lang-menu li {
  margin: 0;
}

.lang-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.45em 0.6em;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  border-radius: var(--radius);
}

.lang-menu button:hover,
.lang-menu button.active {
  background: rgba(45, 108, 223, 0.08);
  color: var(--accent-strong);
}

.lang-flag {
  display: inline-block;
  width: 20px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  background-size: cover;
  background-position: center;
}

.flag-en {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cpath fill='%23012169' d='M0 0h60v30H0z'/%3E%3Cpath stroke='%23fff' stroke-width='6' d='M0 0l60 30M60 0L0 30'/%3E%3Cpath stroke='%23c8102e' stroke-width='4' d='M0 0l60 30M60 0L0 30'/%3E%3Cpath fill='%23fff' d='M25 0h10v30H25zM0 10h60v10H0z'/%3E%3Cpath fill='%23c8102e' d='M26.5 0h7v30h-7zM0 11.5h60v7H0z'/%3E%3C/svg%3E");
}

.flag-it {
  background: linear-gradient(90deg, #009246 33%, #fff 33%, #fff 66%, #ce2b37 66%);
}

.flag-fr {
  background: linear-gradient(90deg, #0055a4 33%, #fff 33%, #fff 66%, #ef4135 66%);
}

nav a:focus-visible,
button:focus-visible,
a.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

main {
  max-width: min(56em, 95vw);
  margin: 0 auto;
  padding: 0 1.4em 3em;
  box-sizing: border-box;
}

main>header {
  padding-bottom: 1.4em;
  border-bottom: 1px solid var(--border);
}

section {
  margin: 2.5em 0;
}

#education h2 {
  font-size: 1.17em;
}

.education-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9em 1.1em;
  margin: 0.75em 0;
}

.education-item h2 {
  margin: 0 0 0.3em;
}

.education-item p {
  margin: 0.2em 0;
  color: var(--muted);
}

ul.nonetype {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

ul.nonetype>li {
  margin: 1em 0;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(1.9rem, 1.2vw + 1.45rem, 2.3rem);
  margin: 0.4em 0 0.35em;
}

h2 {
  font-size: clamp(1.55rem, 0.95vw + 1.1rem, 1.95rem);
  margin: 0.6em 0 0.35em;
}

h3 {
  font-size: clamp(1.15rem, 0.75vw + 0.95rem, 1.4rem);
  margin: 0.8em 0 0.4em;
}

h4 {
  font-size: 1.05rem;
  margin: 0.9em 0 0.4em;
}

p {
  text-align: justify;
  color: var(--muted);
  margin: 0.75em 0;
}

.scholar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.scholar-link img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.teaching-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.teaching-item {
  display: flex;
  gap: 1em;
  padding: 0.4em 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.teaching-year {
  min-width: 7.5em;
  font-weight: 700;
  color: var(--muted);
}

.teaching-body h2 {
  margin: 0 0 0.4em;
  font-size: 1.05rem;
}

.teaching-body p {
  margin: 0;
}

.teaching-desc {
  font-size: 0.9em;
  margin-top: 0.6em;
}

.research-list {
  list-style: none;
  padding: 0;
  margin: 0.8em 0 1.4em;
}

.research-item {
  margin: 0.9em 0;
}

.research-meta {
  display: flex;
  flex-direction: column;
}

.research-years {
  font-weight: 700;
  color: var(--muted);
}

.research-role {
  font-weight: 700;
  margin-top: 0.15em;
}

.research-note {
  margin: 0.25em 0 0;
  color: var(--muted);
}

.temes-hero {
  text-align: center;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.temes-logo {
  width: 100%;
  max-width: 380px;
  margin: 0 auto 0.6em;
  display: block;
}

.temes-hero-text h1 {
  margin-top: 0.2em;
}

.temes-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em;
  margin-top: 0.8em;
  justify-content: center;
}

.pill {
  display: inline-block;
  padding: 0.3em 0.7em;
  background: rgba(45, 108, 223, 0.14);
  color: var(--text);
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.temes-card {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin-top: 1.8em;
}

.temes-card ul,
.temes-card ol {
  margin: 0.4em 0 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.temes-themes {
  padding-left: 0;
  margin: 0.6em auto 0;
  list-style-position: inside;
  text-align: center;
}

.temes-themes li {
  margin: 0.15em 0;
}

.strong {
  font-weight: 700;
}

.small {
  font-size: 0.95em;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1em;
  margin-top: 1em;
  grid-auto-rows: minmax(260px, auto);
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1em 1.1em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  height: auto;
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  outline: none;
}

.portfolio-card h2 {
  margin: 0 0 0.35em;
  font-size: 1.2rem;
  text-align: center;
}

.portfolio-thumb {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.4em 0 0.6em;
}

.portfolio-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  border-radius: var(--radius);
  background: rgba(45, 108, 223, 0.08);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-sizing: border-box;
}

.portfolio-thumb img {
  max-width: 220px;
  width: 80%;
  height: auto;
}

.mei-thumb img {
  max-width: 240px;
  width: 85%;
}

.hh-thumb img {
  max-width: 260px;
  width: 90%;
}

.cover-image {
  display: block;
  margin: 40px auto 20px;
  width: auto;
  max-width: 55%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: var(--radius);
}

.student-compass-logo {
  max-width: 260px;
  width: 60%;
  margin: 28px auto 18px;
}

.student-compass-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #000;
  margin-top: -0.2em;
}

.snb-logo {
  max-width: 280px;
  width: 60%;
  margin: 32px auto 20px;
}

.cover-image:hover,
.cover-image:focus-visible {
  transform: scale(1.04);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  outline: none;
}

.four-arts-logo {
  max-width: 70%;
}

.take-part-image {
  max-width: 65%;
}

.location-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.location-label img {
  width: 20px;
  height: 20px;
}

.project-title {
  text-align: center;
  font-size: clamp(1.4rem, 0.9vw + 1.05rem, 1.85rem);
  margin-bottom: 0.9em;
}

.support-text {
  text-align: center;
  margin: 0.5em 0 0.35em;
}

.supporting-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75em 1.1em;
  align-items: center;
  margin: 0 auto 0.9em;
  max-width: 1000px;
  width: 100%;
}

.supporting-inline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.6em 0.85em;
  margin-bottom: 1.6em;
}

.supporting-inline .support-text {
  margin: 0;
}

.supporting-inline .supporting-logos {
  margin: 0;
  width: auto;
  max-width: none;
  justify-content: flex-start;
}

.supporting-logos img {
  max-height: 98px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.project-title .project-subtitle {
  display: block;
  margin-top: 0.25em;
  font-size: clamp(1rem, 0.6vw + 0.95rem, 1.2rem);
  font-weight: 500;
  color: var(--muted);
}

.small-thumb img {
  max-width: 150px;
  width: 55%;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35em;
  row-gap: 0.3em;
  margin-bottom: 0.5em;
}

.link-pill {
  display: inline-block;
  padding: 0.2em 0;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
}

.portfolio-tag {
  display: inline-block;
  padding: 0.25em 0.6em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9em;
}

.tag-software {
  background: rgba(45, 108, 223, 0.12);
  color: var(--text);
}

.tag-community {
  background: rgba(76, 175, 80, 0.14);
  color: var(--text);
}

.tag-composition {
  background: rgba(255, 165, 0, 0.16);
  color: var(--text);
}

.tag-wellbeing {
  background: rgba(244, 67, 54, 0.14);
  color: var(--text);
}

.plain-link {
  color: inherit;
  font-weight: 500;
  text-decoration: underline;
}

.plain-link:hover,
.plain-link:focus-visible {
  color: inherit;
  text-decoration: underline;
  transform: none;
}

.footer-inner {
  max-width: min(56em, 95vw);
  margin: 0 auto;
  padding: 0 1.4em 1em;
  box-sizing: border-box;
}

.responsive-video {
  position: relative;
  padding-bottom: 48%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 0.6em auto 0.8em;
  max-width: 460px;
}

.responsive-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
}

@media (max-width: 640px) {
  .responsive-video {
    padding-bottom: 56.25%;
    max-width: 100%;
  }
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.6em;
  align-items: start;
}

.media-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.1em 1.2em 1.3em;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.06);
}

.media-card h3 {
  margin: 0 0 0.35em;
  font-size: 1.25em;
  line-height: 1.25;
}

.media-card p {
  margin: 0.35em 0;
}

.media-card .responsive-video {
  margin: 0.5em 0 0;
  max-width: 100%;
  padding-bottom: 56%;
}

.podcast-card {
  max-width: 520px;
  margin: 0.6em 0 0;
}

.photo-carousel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  background: var(--surface);
  aspect-ratio: 3 / 2;
  max-width: 760px;
  width: min(90vw, 760px);
  margin: 0 auto;
}

.photo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.photo-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.photo-slide img {
  width: 100%;
  object-fit: cover;
  display: block;
  flex: 1 1 auto;
  min-height: 0;
}

.photo-slide figcaption {
  margin: 0;
  padding: 0.65em 0.9em;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95em;
  text-shadow: none;
  box-sizing: border-box;
  border-top: 1px solid var(--border);
  flex: 0 0 auto;
}

.carousel-dots {
  display: flex;
  gap: 0.5em;
  justify-content: center;
  margin-top: 0.6em;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.carousel-dot:hover,
.carousel-dot:focus-visible {
  transform: scale(1.1);
  border-color: var(--accent);
  outline: none;
}

.carousel-dot.active {
  background: var(--accent);
  border-color: var(--accent);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9em;
  margin-top: 1.2em;
}

.photo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.photo-card.photo-top-crop img {
  object-position: top;
}

.photo-card figcaption {
  padding: 0.55em 0.7em;
  margin: 0;
  color: var(--muted);
  font-size: 0.92em;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5em;
  box-sizing: border-box;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 0.4em;
  right: 0.4em;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.1em;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
  outline: none;
}

blockquote {
  border-left: 4px solid var(--accent);
  padding: 0.8em 1.1em;
  margin: 1.4em 0;
  background: rgba(45, 108, 223, 0.06);
  border-radius: var(--radius);
  color: var(--muted);
}

@media (max-width: 768px) {
  p {
    text-align: left;
  }
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  color: var(--accent-strong);
  text-decoration: none;
}

a.button {
  color: white;
  padding: 0.35em 0.8em;
  background-color: var(--accent);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  line-height: 1.3;
  display: inline-block;
  box-shadow: 0 8px 16px rgba(45, 108, 223, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

a.button:hover {
  background-color: var(--accent-strong);
  box-shadow: 0 12px 26px rgba(30, 79, 177, 0.25);
  transform: translateY(-1px);
}

.cta-center {
  text-align: center;
  margin: 2em 0 1.6em;
}

a.button.spotify-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  background-color: rgb(29, 185, 84);
  box-shadow: 0 12px 24px rgba(29, 185, 84, 0.25);
}

a.button.spotify-button:hover {
  background-color: rgb(30, 215, 96);
  box-shadow: 0 14px 28px rgba(30, 215, 96, 0.3);
}

.spotify-button {
  vertical-align: middle;
  white-space: nowrap;
}

.spotify-icon svg {
  display: block;
  vertical-align: middle;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
  margin: 0.9em 0 1.5em;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.45em 0.75em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.resource-link:hover,
.resource-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
  border-color: var(--accent);
  outline: none;
}

.resource-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
}

.spaced-top {
  margin-top: 1.6em;
}

figure {
  margin: 1.5em 0;
  text-align: center;
}

img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.full-width-image {
  width: 100%;
  height: auto;
}

cite {
  display: inline;
  font-style: normal;
}

dt {
  font-weight: bold;
  font-style: normal;
}

dd {
  font-style: normal;
}

pre {
  overflow: auto;
  padding: 1em;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
  nav {
    padding: 0.5em 0;
  }

  body {
    padding-top: calc(var(--nav-height) + 0.3rem);
  }

  main {
    padding: 0 1.1em 2.4em;
  }
}

@media (min-width: 1024px) {
  main {
    max-width: 58em;
    /* Expands content for desktop screens */
  }
}

.input-image {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.input-image img {
  width: 95%;
  max-width: 720px;
  transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
  cursor: pointer;
  border-radius: 8px;
}

.input-image img:hover {
  transform: scale(1.08);
  /* Subtle zoom-in on hover */
}

.input-image img.expanded {
  width: 95%;
  /* Bigger but still controlled */
  max-width: 700px;
  /* Prevent it from taking the full screen */
}

.app-screenshots img {
  width: 70%;
  /* Reduce the default size */
  max-width: 350px;
  /* Prevent it from getting too large */
  display: block;
  margin: 20px auto;
  /* Center the image */
}

.app-store-links {
  display: flex;
  justify-content: center;
  /* Centers the buttons */
  gap: 15px;
  /* Adds spacing between the logos */
  margin: 20px 0;
  flex-wrap: wrap;
  /* Allows wrapping on small screens */
}

.app-badge {
  height: 50px;
  /* Uniform height for both logos */
  width: auto;
  /* Keeps original aspect ratio */
  transition: transform 0.2s ease-in-out;
  box-shadow: none;
  border-radius: 8px;
}

.app-badge:hover {
  transform: scale(1.1);
  /* Slight zoom-in effect */
}

.custom-divider {
  width: 60%;
  height: 4px;
  background: linear-gradient(to right, #4CAF50, #58f, #FF5733);
  margin: 50px auto;
  border-radius: 5px;
}

.hcp-gallery {
  display: flex;
  justify-content: center;
  /* Centers images in the row */
  align-items: center;
  /* Ensures vertical alignment */
  gap: 15px;
  /* Adds spacing between images */
  margin: 20px 0;
  flex-wrap: nowrap;
  /* Prevents wrapping to the next line */
}

.hcp-gallery img {
  width: 30%;
  /* Ensures each image takes up equal space */
  height: auto;
  /* Maintains aspect ratio */
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease-in-out;
}

.hcp-gallery img:hover {
  transform: scale(1.05);
  /* Slight zoom-in effect on hover */
}

.download-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4CAF50;
  /* Green */
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease-in-out;
}

.download-button:hover {
  background-color: #45a049;
  /* Slightly darker green on hover */
}

.student-compass-image {
  width: 90%;
  /* 90% of the column width on larger screens */
  max-width: none;
  /* Prevents any restriction on max width */
  display: block;
  margin: 25px auto;
  /* Reduced spacing above and below */
  border-radius: 10px;
  /* Optional: Slight rounded corners */
}

/* Make the image 100% width on small screens */
@media (max-width: 768px) {
  .student-compass-image {
    width: 100%;
    /* Fills the column on smaller screens */
    margin: 20px auto;
    /* Slightly smaller spacing for mobile */
  }
}

.input-video {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.input-video video {
  width: 80%;
  /* Adjusts to 80% of container width */
  max-width: 400px;
  /* Prevents it from being too large */
  border-radius: 8px;
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
}

.input-video video:hover {
  transform: scale(1.05);
  /* Slight zoom on hover */
}

.audio-container {
  display: flex;
  justify-content: center;
  /* Centers the elements */
  gap: 20px;
  /* Adds spacing between the two audio players */
  flex-wrap: wrap;
  /* Ensures responsiveness on smaller screens */
}

.audio-example {
  text-align: center;
  /* Centers the text above */
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Ensures the audio player is centered below the text */
}

h3 {
  margin-top: 30px;
  /* Adds space above all h3 elements */
}

/* Hide the menu by default on mobile */
@media (max-width: 768px) {
  .nav-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    justify-content: space-between;
    column-gap: 0.4em;
    row-gap: 0;
    padding: 0 1.6em;
    max-width: 100%;
    width: 100%;
    margin: 0;
  }

  .home-link {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0.25em;
    padding-left: 0.35em;
  }

  nav a.home-link h1 {
    font-size: 0.95em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-actions {
    margin-left: auto;
    gap: 0.65em;
    align-items: center;
    position: relative;
    flex-shrink: 0;
    flex: 0 0 auto;
    width: auto;
    justify-content: flex-end;
  }

  .language-switcher {
    flex-shrink: 0;
  }

  .lang-toggle {
    gap: 0.35em;
    padding: 0.3em 0.5em;
  }

  /* Hide #menu by default */
  #menu {
    display: none;
    /* hidden by default on mobile */
    background-color: var(--surface);
    /* same background as nav */
    position: absolute;
    top: calc(100% + 0.5em);
    right: 0;
    margin: 0;
    padding: 0;
    width: min(92vw, 20rem);
    order: 2;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    z-index: 1000;
  }

  /* Show it when we toggle the .show-mobile class */
  #menu.show-mobile {
    display: block;
    margin-top: 0;
  }

  /* Stack items vertically */
  #menu li {
    display: block;
    /* stacked in a column */
    text-align: left;
    /* optional: center each item text */
    border-top: 1px solid var(--border);
    /* optional separator line */
    margin: 0;
    padding: 0.95em 1em;
  }

  /* Use same text color as before */
  #menu li a {
    color: var(--text);
    display: block;
  }

  /* Show the hamburger on mobile */
  .hamburger {
    display: inline-block;
    font-size: 1.4em;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 0;
    color: var(--text);
  }
}

/* DESKTOP STYLES */
@media (min-width: 769px) {
  .nav-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 1.1em;
  }

  .nav-actions {
    display: contents;
    margin-left: 0;
  }

  /* Keep your inline display for desktop */
  #menu {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    background-color: transparent;
    /* keep transparent on desktop */
  }

  /* Menu items side by side */
  #menu li {
    display: inline-block;
    border: none;
    /* no separator line */
    margin: 0;
    padding: 1em;
    /* your original nav padding */
  }

  /* Desktop link color (same as original) */
  #menu li a {
    color: var(--text);
  }

  /* Hide the hamburger on desktop */
  .hamburger {
    display: none;
  }

  .language-switcher {
    margin-left: 0;
    justify-self: end;
  }
}

nav a.home-link h1 {
  font-family: 'Homemade Apple', cursive;
  font-size: inherit;
  margin: 0;
  padding: 0.4em 0;
  font-weight: 700;
  display: inline-block;
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 768px) {
  nav a.home-link h1 {
    font-size: 0.92em;
    padding: 0.35em 0.05em 0.35em 0;
  }
}

.home-link {
  display: inline-block;
  /* ensures margin works horizontally */
  margin-right: 1.5em;
  /* add however much spacing you want */
}

/* Optional: if you also want to remove the default hover effect */
.home-link:hover,
.home-link:visited,
.home-link:active {
  color: var(--accent);
  text-decoration: none;
}

/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown button styling with custom triangle arrow */
.dropbtn {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.dropbtn::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text);
  transition: transform 0.2s ease-in-out;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--surface);
  min-width: 200px;
  box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: var(--text);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Show the dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: rgba(45, 108, 223, 0.08);
}
