/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a6b7a;
  --primary-dark: #124d58;
  --primary-light: #2a8fa3;
  --accent: #e8446d;
  --accent-light: #ff6b91;
  --text: #2c3e50;
  --text-light: #5a6a7a;
  --bg: #f8f9fa;
  --white: #ffffff;
  --border: #e0e6eb;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.12);
  --radius: 10px;
  --max-width: 1100px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }

img { max-width: 100%; height: auto; display: block; }

/* === Header === */
.site-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.site-title span { font-weight: 300; opacity: 0.85; }

nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

nav a {
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}

nav a:hover, nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.15);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.contact-btn {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.3);
  transition: all var(--transition);
}

.contact-btn:hover {
  background: var(--white);
  color: var(--primary-dark);
}

/* === Affiliation bar (logos) === */
.affiliation-bar {
  background: var(--white);
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
}

.affiliation-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.affiliation-inner a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color var(--transition);
}

.affiliation-inner a:hover { color: var(--primary); }

.affiliation-inner img {
  height: 50px;
  width: auto;
  transition: transform var(--transition);
}

.affiliation-inner a:hover img { transform: translateY(-2px); }

/* === Hero Banner === */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--white);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../images/Linda2.JPG') center/cover;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.hero-text { text-align: left; }

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 1rem;
  font-weight: 300;
}

.hero .tagline {
  font-size: 1rem;
  opacity: 0.8;
  line-height: 1.6;
}

/* === Page Hero (smaller for subpages) === */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 3rem 2rem;
  text-align: center;
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero p {
  max-width: var(--max-width);
  margin: 0.5rem auto 0;
  opacity: 0.85;
  font-size: 1.05rem;
}

/* === Main Content === */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* === Cards Grid (Home) === */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  color: var(--text);
}

.card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: contain;
  background: #f0f3f5;
}

.card-body {
  padding: 1.25rem;
  flex: 1;
}

.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--primary);
}

.card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* === About Section (Home) === */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.about-text h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.about-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* === Section Titles === */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-light);
  display: inline-block;
}

/* === CV Page === */
.cv-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
}

.cv-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
}

.cv-sidebar .profile-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.cv-sidebar .profile-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
}

.cv-sidebar .profile-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.cv-sidebar .profile-card p { font-size: 0.85rem; color: var(--text-light); }

.cv-sidebar .contact-info {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  margin-top: 1rem;
  font-size: 0.85rem;
}

.cv-sidebar .contact-info dt {
  font-weight: 600;
  color: var(--primary);
  margin-top: 0.75rem;
}

.cv-sidebar .contact-info dt:first-child { margin-top: 0; }
.cv-sidebar .contact-info dd { color: var(--text-light); margin-left: 0; }

.cv-main section { margin-bottom: 2.5rem; }

.cv-main h2 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
}

.timeline-item {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  border-left: 2px solid var(--primary-light);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  display: block;
  margin-bottom: 0.15rem;
}

.timeline-title { font-weight: 600; font-size: 0.95rem; }
.timeline-desc { font-size: 0.88rem; color: var(--text-light); margin-top: 0.15rem; }

/* === Research Page === */
.research-intro {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
  font-size: 1.02rem;
  line-height: 1.8;
}

.research-topic {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 2rem;
}

.research-topic-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.research-topic-content.reverse { direction: rtl; }
.research-topic-content.reverse > * { direction: ltr; }

.research-topic-text { padding: 2rem; }

.research-topic-text h3 {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.research-topic-text p { font-size: 0.92rem; color: var(--text-light); }

.research-topic-img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #f0f3f5;
}

.project-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.project-item {
  background: var(--white);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--primary);
}

.project-item .project-years {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

.project-item .project-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.project-item .project-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

/* === Publications Page === */
.pub-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.pub-stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.75rem;
  box-shadow: var(--shadow);
  text-align: center;
  flex: 1;
  min-width: 140px;
}

.pub-stat .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.pub-stat .label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pub-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.pub-filter {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-light);
}

.pub-filter:hover, .pub-filter.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.pub-year-group { margin-bottom: 2rem; }

.pub-year-group h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  position: sticky;
  top: 75px;
  background: var(--bg);
  padding: 0.5rem 0;
  z-index: 10;
}

.pub-item {
  background: var(--white);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  font-size: 0.9rem;
  transition: box-shadow var(--transition);
}

.pub-item:hover { box-shadow: var(--shadow); }

.pub-item .pub-title { font-weight: 600; color: var(--text); }
.pub-item .pub-journal { color: var(--primary); font-style: italic; font-size: 0.85rem; }
.pub-item .pub-authors { color: var(--text-light); font-size: 0.82rem; margin-top: 0.2rem; }

/* === Award card with photo === */
.award-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-top: 1rem;
}

.award-card .award-text {
  padding: 1.5rem;
}

.award-card .award-text h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

.award-card .award-text .award-year {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  display: block;
  margin-bottom: 0.25rem;
}

.award-card .award-text p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.award-card .award-text a {
  font-size: 0.85rem;
  font-weight: 500;
}

.award-card .award-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* === Carousel === */
.carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  max-height: 550px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: #000;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 2;
  transition: background var(--transition);
}

.carousel-btn:hover { background: rgba(0,0,0,0.8); }
.carousel-btn.prev { left: 1rem; }
.carousel-btn.next { right: 1rem; }

.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.carousel-dot.active { background: var(--white); }

/* === Publication item extensions === */
.pub-item .pub-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 500;
}

.pub-item .pub-link:hover { text-decoration: underline; }

/* === Contact page === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  color: var(--primary-dark);
  font-size: 1.15rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.contact-card dl dt {
  font-weight: 600;
  color: var(--primary);
  margin-top: 1rem;
  font-size: 0.85rem;
}

.contact-card dl dt:first-child { margin-top: 0; }
.contact-card dl dd { margin-left: 0; color: var(--text-light); font-size: 0.95rem; }

/* === Zumba Page === */
.zumba-hero {
  background: linear-gradient(135deg, #e8446d, #ff6b91, #ffb347);
  color: var(--white);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
}

.zumba-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.zumba-hero .punchline {
  font-size: 1.4rem;
  font-weight: 300;
  opacity: 0.95;
}

.zumba-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
}

.zumba-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.zumba-about-text h2 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.zumba-about-text p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.zumba-about-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.zumba-objective {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  border-top: 4px solid var(--accent);
}

.zumba-objective h2 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.zumba-objective p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
}

.zumba-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.zumba-highlight {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.zumba-highlight .icon { font-size: 2.5rem; margin-bottom: 0.75rem; }

.zumba-highlight h3 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.zumba-highlight p { font-size: 0.88rem; color: var(--text-light); }

/* === Footer === */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
}

.site-footer a { color: rgba(255,255,255,0.9); }

/* === Responsive === */
@media (max-width: 768px) {
  .header-inner { height: 60px; position: relative; }
  .site-title { font-size: 1.2rem; }

  .menu-toggle { display: block; position: absolute; right: 2rem; top: 50%; transform: translateY(-50%); }

  nav { position: static; }
  nav ul {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 0.5rem 0;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  nav ul.open { display: flex; }
  nav li { width: 100%; }
  nav a { display: block; padding: 0.75rem 1.5rem; border-radius: 0; text-align: left; }
  nav a:hover, nav a.active { background: rgba(255,255,255,0.1); }

  .hero { padding: 3rem 1.5rem; }
  .hero-content { flex-direction: column; text-align: center; gap: 1.5rem; }
  .hero-text { text-align: center; }
  .hero h1 { font-size: 1.8rem; }
  .hero-photo { width: 140px; height: 140px; }

  .about-section { grid-template-columns: 1fr; gap: 1.5rem; }
  .cv-grid { grid-template-columns: 1fr; }
  .cv-sidebar { position: static; }

  .research-topic-content,
  .research-topic-content.reverse { grid-template-columns: 1fr; }

  .zumba-about { grid-template-columns: 1fr; }
  .zumba-highlights { grid-template-columns: 1fr; }
  .zumba-hero h1 { font-size: 2rem; }

  .main-content { padding: 2rem 1.25rem; }

  .pub-stats { gap: 0.5rem; }
  .pub-stat { min-width: 0; flex: 1 1 calc(50% - 0.5rem); padding: 0.75rem 0.5rem; }
  .pub-stat .number { font-size: 1.25rem; }
  .pub-stat .label { font-size: 0.65rem; }

  .award-card .award-text { padding: 1.25rem; }

  .carousel-slide img { height: 280px; }
  .carousel-btn { width: 36px; height: 36px; }

  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .affiliation-inner { gap: 1.25rem; }
  .affiliation-inner img { height: 32px; }

  nav .contact-btn {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    display: block;
    text-align: left;
  }
}
