:root{
  /* Core palette (Theme 1) */
  --green-900:#0b2a1e;     /* deep racing green (bar) */
  --green-800:#104032;     /* slightly lighter */
  --paper:#f7f5f0;         /* warm paper */
  --bg:#e7e5e1;            /* warm gray */
  --text:#1e2421;          /* ink */
  --muted:rgba(30,36,33,.72);
  --border:rgba(40,60,55,.22);

  /* Brass / gold accent */
  --accent:#b08d57;
  --accent-2:#d2b47a;

  /* Type */
  --font-body:"Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head:"Cormorant Garamond", Georgia, "Times New Roman", serif;

  /* Layout */
  --radius:16px;
  --shadow:0 10px 26px rgba(0,0,0,.08);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:var(--font-body);
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
}

header{
  background:var(--green-900);
  color:var(--paper);
  border-bottom:1px solid rgba(176,141,87,.28);
}

.header-inner{
  max-width:1100px;
  margin:0 auto;
  padding:18px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.site-title{
  font-family:var(--font-head);
  font-size:1.55rem;
  font-weight:700;
  letter-spacing:.2px;
}

.site-subtitle{
  margin-top:2px;
  font-size:.95rem;
  opacity:.86;
}

nav{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
}

nav a{
  text-decoration:none;
  color:inherit;
  font-size:.98rem;
  opacity:.92;
  padding:6px 2px;
  border-bottom:2px solid transparent;
}

nav a:hover{
  opacity:1;
  border-bottom-color:rgba(176,141,87,.75);
}

.lang-switch{
  display:flex;
  align-items:center;
  gap:10px;
}

.lang-flag {
    width: 24px;
    height: auto;
    vertical-align: middle;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.lang-flag:hover {
    transform: scale(1.1);
}

.lang-active {
    filter: grayscale(100%);
    opacity: 0.4;
    cursor: default;
    transform: none !important;
}

.lang-switch a{
  text-decoration:none;
  font-size:1.15rem;
  line-height:1;
  padding:6px 8px;
  border-radius:999px;
  border:1px solid rgba(176,141,87,.35);
  background:rgba(247,245,240,.06);
}

.lang-switch a:hover{
  border-color:rgba(210,180,122,.8);
  background:rgba(247,245,240,.10);
}

main{
  max-width:1100px;
  margin:0 auto;
  padding:34px 16px;
}

.section{
  background:var(--paper);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:26px;
  margin-bottom:24px;
  box-shadow:var(--shadow);
}

.section p {
  max-width: 70ch;
  text-align: justify;
}

h1,h2,h3{
  font-family:var(--font-head);
  margin:0 0 10px;
  line-height:1.18;
}

h1{font-size:2.05rem}
h2{font-size:1.55rem}
h3{font-size:1.25rem}

p{margin:0 0 12px}
ul{margin:10px 0 0; padding-left:18px}
li{margin:6px 0}

.columns{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(230px, 1fr));
  gap:18px;
}

.card{
  border:1px solid rgba(40,60,55,.18);
  border-radius:14px;
  padding:16px;
  background:rgba(255,255,255,.28);
}

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

.card a:hover{
  text-decoration:underline;
  color:var(--accent-2);
}

/* --- Courses page --- */

.course-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:18px;
}

.course-card{
  display:block;
  background:rgba(255,255,255,.28);
  border:1px solid rgba(40,60,55,.18);
  border-radius:14px;
  padding:18px;
  text-decoration:none;
  color:inherit;
  transition: transform .08s ease, box-shadow .08s ease, border-color .08s ease;
}

.course-card:hover{
  transform: translateY(-2px);
  border-color: rgba(176,141,87,.65);
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
}

.course-title{
  font-family: var(--font-head);
  font-size:1.35rem;
  margin:0 0 6px;
  line-height:1.2;
}

.course-meta{
  font-size:.95rem;
  color:var(--muted);
  margin:0 0 10px;
}

.course-desc{
  margin:0 0 12px;
}

.course-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:10px;
}

.course-links a{
  font-weight:600;
  text-decoration:none;
  color: var(--accent);
  border-bottom:1px solid transparent;
}

.course-links a:hover{
  color: var(--accent-2);
  border-bottom-color: rgba(210,180,122,.75);
}


a{
  color:var(--accent);
}

a:hover{
  color:var(--accent-2);
}

footer{
  max-width:1100px;
  margin:26px auto 40px;
  padding:0 16px;
  font-size:.88rem;
  color:var(--muted);
}
/* Research / Academic CV page */
.cv-section { margin: 22px 0; }
.cv-section h2 { margin: 0 0 10px 0; }
.cv-section h3 { margin: 14px 0 6px 0; }

.lead {
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.meta { margin: 8px 0 0 0; font-size: 0.95em; }
.muted { opacity: 0.65; }
.minihead { font-size: 1.0em; opacity: 0.9; margin: 10px 0 6px 0; }

.cv-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Tight lists (the “lots of items” feeling) */
.list-tight { margin: 0; padding-left: 18px; }
.list-tight li { margin: 0; padding: 0; line-height: 1.15; }
.list-tight.dense li { margin-bottom: 2px; }

/* Year headers */
.year { margin-top: 14px; margin-bottom: 6px; opacity: 0.85; }

/* Bibliometrics row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 8px 0;
}
.stat {
  border: 1px solid rgba(0,0,0,0.15);
  padding: 8px 10px;
  border-radius: 8px;
}
.stat-num { font-size: 1.5em; font-weight: 700; line-height: 1.0; }
.stat-label { opacity: 0.8; font-size: 0.9em; }

/* Themes */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.theme {
  border: 1px solid rgba(0,0,0,0.12);
  padding: 10px 12px;
  border-radius: 10px;
}
.theme-title { font-weight: 700; margin: 0 0 4px 0; }
.theme-desc { margin: 0 0 6px 0; line-height: 1.25; }
.theme-tags { opacity: 0.75; font-size: 0.92em; }

/* Dense reference styling */
.ref { font-weight: 600; }
.title { font-style: italic; }
.venue { opacity: 0.85; }
.links { white-space: nowrap; }

/* Projects styling */
.proj-title { font-weight: 700; }
.proj-meta { opacity: 0.8; margin-left: 6px; }

/* Simple responsiveness */
@media (max-width: 800px) {
  .cv-columns { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}



/* --- Video-style course card --- */

.video-card .video-thumb{
  position:relative;
  border-radius:10px;
  overflow:hidden;
  margin-bottom:12px;
}

.video-card img{
  width:100%;
  height:auto;
  display:block;
}

/* Play button */
.video-card .play-button{
  position:absolute;
  top:50%;
  left:50%;
  width:54px;
  height:54px;
  transform:translate(-50%, -50%);
  background:rgba(0,0,0,.55);
  border-radius:50%;
}

.video-card .play-button::before{
  content:"";
  position:absolute;
  top:50%;
  left:52%;
  transform:translate(-50%, -50%);
  border-style:solid;
  border-width:10px 0 10px 16px;
  border-color:transparent transparent transparent #fff;
}


/* --- About page hero --- */

.hero-grid{
  display:grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap:28px;
  align-items:center;
}

.hero-photo{
  display:flex;
  justify-content:flex-end;
}

.hero-photo img{
  max-width:220px;
  width:100%;
  height:auto;
  border-radius:10px;
  border:2px solid var(--accent);
  box-shadow:0 8px 22px rgba(0,0,0,.18);
  background:#fff;
}

/* --- YouTube page extras --- */

.action-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:10px;
}

.btn-link{
  display:inline-block;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(176,141,87,.45);
  text-decoration:none;
  font-weight:650;
  color:var(--accent);
  background:rgba(247,245,240,.06);
}

.btn-link:hover{
  color:var(--accent-2);
  border-color:rgba(210,180,122,.8);
  background:rgba(247,245,240,.10);
}

.playlist-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:18px;
}

.small-note{
  margin-top:8px;
  color:var(--muted);
  font-size:.95rem;
}

.resource-list{
  margin:10px 0 0;
  padding-left:18px;
}

.resource-list li{
  margin:8px 0;
}

.resource-list a{
  font-weight:600;
}

/* ===== Research page helpers ===== */

.lead{
  font-size:1.02rem;
  color:rgba(30,36,33,.86);
  max-width:80ch;
}

.tight-paras p{
  margin:0 0 8px;
}

.muted-note{
  margin-top:10px;
  font-size:.92rem;
  color:rgba(30,36,33,.72);
}

/* Bibliometrics */
/* Bibliometrics: single-line pill row */
.biblio-row{
  display:flex;
  flex-wrap:wrap;          /* wraps only on small screens */
  gap:10px;
  align-items:center;
  margin-top:10px;
}

.biblio-pill{
  display:inline-flex;
  align-items:baseline;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(176,141,87,.45);
  background: rgba(255,255,255,.22);
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  white-space:nowrap;      /* keep each pill in one line */
}

.biblio-pill-label{
  font-size:.92rem;
  color: rgba(30,36,33,.74);
}

/* Make bibliometrics feel attached to bio */
.bio-biblio{
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid rgba(176,141,87,.28);
}


.biblio-pill-value{
  font-family: var(--font-head);
  font-size:1.25rem;
  font-weight:700;
  line-height:1;
  color: var(--green-900);
}

.biblio-meta{
  margin-top:6px;
  font-size:0.85rem;
  color:rgba(30,36,33,.55);
}

/* Optional: make the whole row feel "tight" */
@media (max-width: 520px){
  .biblio-pill{
    padding:7px 10px;
    gap:8px;
  }
  .biblio-pill-value{
    font-size:1.15rem;
  }
}





/* Themes */
.theme-list{
  display:grid;
  gap:14px;
}

.theme-item{
  border:1px solid rgba(40,60,55,.18);
  border-radius:14px;
  padding:14px 14px 12px;
  background:rgba(255,255,255,.22);
}

.theme-title{
  font-family: var(--font-head);
  font-size:1.28rem;
  font-weight:700;
  margin-bottom:4px;
}

.theme-desc{
  color:rgba(30,36,33,.82);
  margin-bottom:8px;
}

.tag-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.tag{
  font-size:.85rem;
  padding:3px 10px;
  border-radius:999px;
  border:1px solid rgba(176,141,87,.45);
  color: rgba(30,36,33,.82);
  background: rgba(176,141,87,.10);
}

/* Dense lists: "lots of stuff" feel */
.dense-list{
  margin:10px 0 0;
  padding-left:18px;
  line-height:1.22;
}

.dense-list li{
  margin:0;                 /* removes vertical gaps */
  padding:2px 0;            /* tiny separation so it’s readable */
}

.dense-list li::marker{
  color: rgba(176,141,87,.9); /* brass bullets */
}

/* ===== Research: merged Bio + Metrics block ===== */

.bio-metrics-grid{
  display:grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap:22px;
  align-items:start;
}

.metrics-strip{
  border:1px solid rgba(176,141,87,.32);
  border-radius:14px;
  padding:14px;
  background: rgba(176,141,87,.07);
}

.metric{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  padding:10px 10px;
  border-bottom:1px solid rgba(176,141,87,.22);
}

.metric:last-child{
  border-bottom:none;
}

.metric-value{
  font-family: var(--font-head);
  font-size:1.65rem;
  font-weight:700;
  color: var(--green-900);
  line-height:1.05;
}

.metric-label{
  font-size:.95rem;
  color: rgba(30,36,33,.78);
  white-space:nowrap;
}

.metric-note{
  margin-top:10px;
  font-size:.9rem;
  color: rgba(30,36,33,.70);
}

/* Mobile */
@media (max-width: 760px){
  .hero-grid{
    grid-template-columns: 1fr;
  }
  .hero-photo{
    justify-content:flex-start;
    margin-top:18px;

  .bio-metrics-grid{
    grid-template-columns: 1fr;
  }

  }
}

