/* =========================================================
   GLOBAL
========================================================= */

body {
    margin: 0;
    background-color: #f5f3ef;
    color: #111111;
    font-family: 'Inter', sans-serif;
  }
  
  .page {
    max-width: 760px;
    margin: 0 auto;
    padding: 105px 40px 30px 40px;
    box-sizing: border-box;
    animation: pageFadeUp 0.9s ease both;
  }
  
  @keyframes pageFadeUp {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
  
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  
  /* =========================================================
     INDEX HERO
  ========================================================= */
  
  .hero-container {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 22px;
    margin-bottom: 38px;
  }
  
  .hero-text {
    max-width: 520px;
  }
  
  h1 {
    font-size: 4rem;
    line-height: 0.95;
    margin: 0 0 14px 0;
    font-weight: 700;
    letter-spacing: -3px;
  }
  
  .intro {
    font-size: 1.18rem;
    line-height: 1.6;
    color: #333333;
    margin: 0;
  }
  
  .hero-image img {
    width: 132px;
    height: 132px;
    object-fit: cover;
    object-position: center 12%;
    border-radius: 50%;
  }
  
  
  /* =========================================================
     SECTION TITLES
  ========================================================= */
  
  .about-section h2,
  .education-section h2,
  .employment-section h2,
  .skills-section h2 {
    font-size: 1.25rem;
    margin: 0 0 8px 0;
    font-weight: 700;
    letter-spacing: -0.4px;
  }
  
  
  /* =========================================================
     ABOUT
  ========================================================= */
  
  .about-section {
    max-width: 700px;
  }
  
  .about-section p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #4b4b4b;
    margin: 0 0 14px 0;
  }
  
  
  /* =========================================================
     EDUCATION
  ========================================================= */
  
  .education-section {
    max-width: 820px;
    margin-top: 54px;
  }
  
  .education-item {
    margin-bottom: 22px;
  }
  
  .education-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 5px;
  }
  
  .education-text h3 {
    font-size: 0.98rem;
    margin: 0 0 2px 0;
    font-weight: 700;
  }
  
  .education-text p {
    font-size: 0.98rem;
    margin: 0;
    color: #333333;
    line-height: 1.5;
  }
  
  .education-year {
    font-size: 0.94rem;
    color: #777777;
    white-space: nowrap;
  }
  
  
  /* =========================================================
     EMPLOYMENT
  ========================================================= */
  
  .employment-section {
    max-width: 760px;
    margin-top: 54px;
  }
  
  .employment-item {
    margin-bottom: 24px;
  }
  
  .employment-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 5px;
  }
  
  .employment-text h3 {
    font-size: 0.98rem;
    margin: 0 0 2px 0;
    font-weight: 700;
  }
  
  .employment-text p {
    font-size: 0.98rem;
    margin: 0;
    color: #333333;
    line-height: 1.5;
  }
  
  .employment-year {
    font-size: 0.94rem;
    color: #777777;
    white-space: nowrap;
  }
  
  
  /* =========================================================
     EXPANDABLE ITEMS
  ========================================================= */
  
  .expandable-item {
    display: block;
  }
  
  .expandable-item summary {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    list-style: none;
    position: relative;
  }
  
  .expandable-item summary::-webkit-details-marker {
    display: none;
  }
  
  .expandable-item summary::after {
    display: none;
  }
  
  .expandable-item .education-text h3::after,
  .expandable-item .employment-text h3::after {
    content: "›";
    display: inline-block;
    margin-left: 6px;
    opacity: 0;
    transform: translateX(-4px);
    color: #777777;
    transition:
      opacity 0.18s ease,
      transform 0.18s ease;
  }
  
  .expandable-item summary:hover .education-text h3::after,
  .expandable-item summary:hover .employment-text h3::after {
    opacity: 1;
    transform: translateX(0);
  }
  
  .expandable-item[open] .education-text h3::after,
  .expandable-item[open] .employment-text h3::after {
    opacity: 1;
    transform: rotate(90deg);
  }
  
  .item-details {
    margin-left: 72px;
    margin-top: 8px;
    margin-bottom: 16px;
    max-width: 560px;
  }
  
  .item-details p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #777777;
    margin: 0;
  }
  
  
  /* =========================================================
     SKILLS
  ========================================================= */
  
  .skills-section {
    max-width: 760px;
    margin-top: 54px;
  }
  
  .skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .skill-pill {
    background: #8C9379;
    color: #f5f3ef;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    transition:
      transform 0.18s ease,
      opacity 0.18s ease;
  }
  
  .skill-pill:hover {
    transform: translateY(-2px);
  }
  
  /* =========================================================
   RESEARCH CTA
========================================================= */

.research-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 36px;
    padding: 10px 18px;
  
    background: #4D6A68  /*#2C5451*/;
    color: #f8f5f1;
  
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
  
    border-radius: 14px;
  
    transition:
      transform 0.18s ease,
      opacity 0.18s ease,
      box-shadow 0.18s ease;
  }
  
  .research-cta a:hover {
    transform: translateY(-2px);
    opacity: 0.92;
    box-shadow: 0 10px 22px rgba(159, 75, 52, 0.18);
  }
  
  /* =========================================================
     NAVBAR
  ========================================================= */
  
  .top-nav {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    z-index: 1000;
  }
  
  .top-nav::after {
    content: "";
    position: absolute;
    left: 58px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 22px;
    background: rgba(0, 0, 0, 0.12);
  }
  
  .top-nav a,
  .theme-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #111111;
    background: transparent;
    border: none;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition:
      transform 0.18s ease,
      background 0.18s ease,
      opacity 0.18s ease;
  }
  
  .top-nav i {
    font-size: 1rem;
  }
  
  .top-nav a:hover,
  .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: scale(1.18) translateY(-3px);
  }
  
  .top-nav a::after,
  .theme-toggle::after {
    content: attr(data-label);
    position: absolute;
    top: 44px;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: #111111;
    color: white;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 6px 8px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.15s ease,
      transform 0.15s ease;
  }
  
  .top-nav a:hover::after,
  .theme-toggle:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  
  
  /* =========================================================
     DARK MODE
  ========================================================= */
  
  .dark-mode {
    background-color: #111111;
    color: #f5f3ef;
  }
  
  .dark-mode .intro,
  .dark-mode .about-section p,
  .dark-mode .education-text p,
  .dark-mode .employment-text p,
  .dark-mode .item-details p {
    color: #d1d1d1;
  }
  
  .dark-mode .education-year,
  .dark-mode .employment-year {
    color: #a9a9a9;
  }
  
  .dark-mode .education-item img,
  .dark-mode .employment-item img {
    background: #f5f3ef;
  }
  
  .dark-mode .skill-pill {
    background: #f5f3ef;
    color: #111111;
  }
  
  .dark-mode .top-nav {
    background: rgba(30, 30, 30, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
  
  .dark-mode .top-nav::after {
    background: rgba(255, 255, 255, 0.18);
  }
  
  .dark-mode .top-nav a,
  .dark-mode .theme-toggle {
    color: #f5f3ef;
  }
  
  .dark-mode .top-nav a:hover,
  .dark-mode .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  
  /* =========================================================
     RESEARCH LANDING PAGE
     (research.html)
  ========================================================= */
  
  .page.research-landing-page {
    max-width: 760px;
    padding: 105px 40px 30px 40px;
  }
  
  .research-landing-page .research-hero {
    margin-bottom: 48px;
  }
  
  .research-landing-page .eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #777777;
    margin: 0 0 18px 0;
    font-weight: 700;
  }
  
  /* SMALLER TITLE */
  
  .research-landing-page .research-hero h1 {
    font-size: 3rem;
    line-height: 0.96;
    letter-spacing: -2.4px;
    max-width: 760px;
    margin: 0 0 14px 0;
  }
  
  .research-landing-page .research-intro {
    max-width: 700px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #3d3d3d;
    margin: 0;
  }
  
  
  /* =========================================================
     RESEARCH CARDS
  ========================================================= */
  
  .research-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 34px;
  }
  
  .research-image-card {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 190px;
    border-radius: 24px;
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition:
      transform 0.18s ease,
      box-shadow 0.18s ease;
  }
  
  .research-image-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  }
  
  .research-image-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .research-card-text {
    position: relative;
    z-index: 2;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 24px 26px;
  
    background:
    linear-gradient(
      to right,
      rgba(245, 243, 239, 0.97) 0%,
      rgba(245, 243, 239, 0.93) 46%,
      rgba(245, 243, 239, 0.68) 72%,
      rgba(245, 243, 239, 0.38) 88%,
      rgba(245, 243, 239, 0.18) 100%
    );
  }
  
  .research-card-text h2 {
    font-size: 1.45rem;
    line-height: 1.08;
    letter-spacing: -0.7px;
    margin: 0 0 12px 0;
    max-width: 360px;
  }
  
  .research-card-text p {
    font-size: 0.86rem;
    line-height: 1.58;
    color: #3f3f3f;
    max-width: 190px;
    margin: 0 0 20px 0;
  }
  
  .research-card-text span {
    margin-top: auto;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background:   rgba(80, 45, 25, 0.78);
    color: #f5f3ef;
    font-size: 0.76rem;
    font-weight: 700;
  }
  
  
  /* =========================================================
     RESEARCH THEME PAGES
     (Carbamylation / HIV)
  ========================================================= */
  
  .page.research-page:not(.research-landing-page) {
    max-width: 980px;
  }
  
  .research-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
    font-size: 0.8rem;
    color: #777777;
  }
  
  .research-breadcrumb a {
    color: inherit;
    text-decoration: none;
  }
  
  .research-breadcrumb p {
    margin: 0;
  }
  
  .research-page:not(.research-landing-page) .research-hero {
    margin-bottom: 54px;
  }
  
  .research-page:not(.research-landing-page) .eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #777777;
    margin: 0 0 18px 0;
    font-weight: 700;
  }
  
  /* SMALLER TITLES */
  
  .research-page:not(.research-landing-page) .research-hero h1 {
    font-size: 3rem;
    line-height: 0.96;
    letter-spacing: -2.4px;
    max-width: 760px;
    margin: 0 0 14px 0;
  }
  
  .research-page:not(.research-landing-page) .research-intro {
    max-width: 720px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #3d3d3d;
    margin: 0;
  }
  
  

  /* =========================================================
   PUBLICATION CARDS
========================================================= */

.publication-section-intro {
    margin-bottom: 28px;
  }
  
  .publication-section-intro h2 {
    font-size: 1.15rem;
    margin: 0 0 8px 0;
  }
  
  .publication-section-intro p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #666666;
    margin: 0;
  }
  
  .publication-list {
    display: grid;
    gap: 18px;
  }
  
  .publication-card {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 24px;
  
    transition:
      transform 0.18s ease,
      box-shadow 0.18s ease,
      background 0.18s ease;
  }
  
  .publication-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.78);
  }
  
  .featured-publication {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 22px;
  }
  
  .pub-image {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    overflow: hidden;
    background: #ebe6df;
    border: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
  }
  
  .pub-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
  }
  
  .publication-card:hover .pub-image img {
    transform: scale(1.04);
  }
  
  .pub-type {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #9a6b54;
    font-weight: 700;
    margin: 0 0 8px 0;
  }
  
  .publication-card h3 {
    font-size: 1rem;
    line-height: 1.35;
    margin: 0 0 8px 0;
    letter-spacing: -0.2px;
  }
  
  .pub-meta {
    font-size: 0.82rem;
    color: #8a6b5b;
    margin: 0 0 12px 0;
  }
  
  .publication-card p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #4b4b4b;
    margin: 0;
  }
  
  .why-matters {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(154, 107, 84, 0.08);
  }
  
  .why-matters strong {
    display: block;
    font-size: 0.78rem;
    margin-bottom: 6px;
    color: #111111;
  }
  
  .why-matters p {
    font-size: 0.82rem;
    color: #555555;
    margin: 0;
  }
  
  .pub-links {
    display: flex;
    gap: 14px;
    margin-top: 16px;
  }
  
  .pub-links a {
    font-size: 0.78rem;
    color: #8C9379;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.35);
    padding-bottom: 2px;
  }
  
  .pub-links a:hover {
    opacity: 0.65;
  }
  
  /* =========================================================
   BACK TO RESEARCH LINK
========================================================= */

.research-back-link {
    margin-top: 42px;
  }
  
  .research-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  
    font-size: 0.9rem;
    font-weight: 500;
  
    color: #7d5b49;
    text-decoration: none;
  
    border-bottom: 1px solid rgba(125, 91, 73, 0.28);
    padding-bottom: 2px;
  
    transition:
      opacity 0.18s ease,
      transform 0.18s ease;
  }
  
  .research-back-link a:hover {
    opacity: 0.68;
    transform: translateX(-2px);
  }
  /* =========================================================
     MOBILE
  ========================================================= */
  
  @media (max-width: 768px) {
  
    .page,
    .page.research-landing-page,
    .page.research-page {
      max-width: 100%;
      padding: 90px 24px 90px 24px;
    }
  
    .hero-container {
      flex-direction: column-reverse;
      gap: 24px;
      margin-bottom: 42px;
    }
  
    h1 {
      font-size: 3.2rem;
      letter-spacing: -2px;
    }
  
    .research-landing-page .research-hero h1,
    .research-page:not(.research-landing-page) .research-hero h1 {
      font-size: 2.2rem;
      letter-spacing: -1.5px;
    }
  
    .research-card-grid {
      grid-template-columns: 1fr;
    }
  
    .featured-publication {
      grid-template-columns: 1fr;
    }
  
  }
/* =========================================================
   BOTTOM LINKS
========================================================= */

.bottom-links {
    margin-top: 28px;
    padding-top: 24px;
    padding-bottom: 42px;
  
    border-top: 1px solid rgba(0, 0, 0, 0.10);
  
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
  
    font-size: 0.95rem;
    color: #6b6b6b;
  }
  
  .bottom-links a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.18s ease;
  }
  
  .bottom-links a:hover {
    opacity: 0.6;
  }
  
  .bottom-links span {
    opacity: 0.35;
  }

/* =========================================================
   RESEARCH PAGE FOOTER
========================================================= */

.research-footer {
    margin-top: 20px;
  
    padding-top: 22px;
    padding-bottom: 10px;
  
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .research-footer a {
    color: #6f6f6f;
    text-decoration: none;
  
    font-size: 0.92rem;
    font-weight: 500;
  
    transition: opacity 0.18s ease;
  }
  
  .research-footer a:hover {
    opacity: 0.6;
  }