@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette */
  --pelorous:   #3EB0C0;   /* bright teal  */
  --botticelli: #C8E1E4;   /* pale blue-grey */
  --casal:      #3a6b73;   /* dark teal – slightly lighter */
  --paco:       #E8724A;   /* orange-brown */
  --gold:       #E8724A;   /* warm orange */

  /* Surfaces — light to dark */
  --bg-white:  #ffffff;
  --bg-soft:   #f0f8f9;    /* slightly lighter Botticelli tint */
  --bg-mid:    #C8E1E4;    /* Botticelli */
  --bg-dark:   #3a6b73;    /* Casal */
  --footer-bg: #3a6b73;    /* Casal footer */

  /* Text — always high contrast */
  --text-main:  #1a1a1a;   /* near-black on white */
  --text-muted: #3a3a3a;   /* dark grey body copy */
  --text-light: #5a5a5a;   /* secondary labels */

  /* Interactive */
  --accent-color: #3a6b73;
  --accent-hover: #2a5058;
  --btn-bg:       #3a6b73;   /* Pelorous buttons */
  --btn-hover:    #2a5058;

  --font-serif: 'Lora', serif;
  --font-sans:  'Inter', sans-serif;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

/* ── NAVBAR ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 5%;
  background: var(--casal);
  max-width: 100%;
  border-bottom: 3px solid var(--paco);
  position: relative;
  z-index: 100;
}
.nav-brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.nav-logo {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.nav-logo span {
  color: var(--gold);
}
.nav-subtitle {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.05em;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  color: #ffffff;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
}

/* ── HERO / ABOUT SECTION ── */
.hero-wrapper {
  background: linear-gradient(150deg, var(--casal) 0%, #254f57 100%);
  width: 100%;
  padding: 80px 0 160px 0;
  position: relative;
}
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

.hero-text {
  padding-top: 20px;
}
.hero-text h1 {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-text p {
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}
.hero-text p strong {
  font-weight: 600;
  color: #ffffff;
}
.hero-text a.inline-link {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-image-col {
  position: relative;
  z-index: 10;
}
.hero-image {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.15);
  margin-bottom: -160px;
  filter: grayscale(0%) saturate(1) !important;
}

/* ── HIGHLIGHTED RESEARCH SECTION ── */
.lower-section {
  max-width: 1200px;
  margin: 120px auto 80px auto; /* Margin top to account for overlapping image */
  padding: 0 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.highlight-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 12px;
}
.highlight-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--casal);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.highlight-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  background: var(--btn-bg);
  color: var(--bg-white);
  padding: 12px 28px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--btn-hover);
}
.btn::after {
  content: '→';
  margin-left: 8px;
  font-family: Arial, sans-serif;
}

.interests-col {
  padding-top: 30px;
}
.interests-col ul {
  list-style: none;
  margin-top: 24px;
}
.interests-col li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  position: relative;
  padding-left: 16px;
}
.interests-col li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-light);
}

/* ── GENERIC INTERNAL PAGE HEADER ── */
.page-header {
  background: linear-gradient(150deg, var(--casal) 0%, #254f57 100%);
  padding: 80px 5%;
  text-align: center;
  border-bottom: 4px solid var(--paco);
}
.page-header h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 16px;
}
.page-header p {
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 300;
}

/* ── INTERNAL CONTENT WRAPPER ── */
.content-wrapper {
  max-width: 1500px;
  margin: 80px auto;
  padding: 0 4%;
}

/* ── RESEARCH GRID ── */
.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.research-card {
  background: var(--bg-white);
  border-top: 3px solid var(--botticelli);
  padding: 30px 0;
  transition: border-color 0.3s ease;
}
.research-card:hover {
  border-top-color: var(--pelorous);
}
.research-card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--casal);
  margin-bottom: 16px;
}
.research-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── SECTION LABEL ── */
.section-label {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

/* ── BOOKS GRID ── */
.books-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.book-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 44px;
  padding: 44px;
  background: var(--bg-soft);
  border-radius: 10px;
  align-items: flex-start;
  transition: box-shadow 0.3s ease;
}
.book-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.book-cover {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  object-fit: cover;
}

.book-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

@media (max-width: 860px) {
  .book-card {
    grid-template-columns: 1fr !important;
    padding: 28px;
    gap: 24px;
  }
  .book-cover {
    width: 160px !important;
    min-width: unset !important;
  }
}

.book-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.book-year {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.book-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--casal);
  line-height: 1.2;
}

.book-authors {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
}

.book-summary {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-top: 6px;
  text-align: justify;
}

.btn-book {
  margin-top: 16px;
  align-self: flex-start;
  background: var(--accent-color);
}
.btn-book:hover {
  background: var(--accent-hover);
}

/* ── GOOGLE SCHOLAR BUTTON ── */
.scholar-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent-color);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 18px 40px;
  border-radius: 100px;
  box-shadow: 0 8px 24px rgba(214, 92, 60, 0.35);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  letter-spacing: 0.01em;
}
.scholar-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 12px 32px rgba(214, 92, 60, 0.45);
  transform: translateY(-2px);
}

/* ── SCHOLAR STATS ── */
.scholar-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 28px 36px;
  margin: 60px 0 0 0;
  flex-wrap: wrap;
}
.scholar-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-color);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.scholar-link {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-color);
  text-decoration: none;
  white-space: nowrap;
}
.scholar-link:hover { text-decoration: underline; }

/* ── PUBLICATIONS LIST ── */
.pub-item {
  padding: 24px 24px 24px 20px;
  border-bottom: 1px solid var(--botticelli);
  border-left: 3px solid transparent;
  transition: border-color 0.2s;
}
.pub-item:hover {
  border-left-color: var(--paco);
  background: #fafafa;
}
.pub-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.pub-year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--casal);
  margin: 0;
}
.pub-cited {
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  background: #3a6b73;
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}
.pub-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--casal);
  margin-bottom: 6px;
  line-height: 1.4;
  text-transform: capitalize;
}
.pub-authors {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.pub-journal {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 48px 0 16px;
}
.page-numbers {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.page-btn-prev,
.page-btn-next {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--bg-white);
  border: 2px solid #ccc;
  color: var(--text-main);
  cursor: pointer;
  border-radius: 100px;
  padding: 16px 36px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.page-btn-prev:hover:not(:disabled),
.page-btn-next:hover:not(:disabled) {
  color: var(--accent-color);
  border-color: var(--accent-color);
}
.page-btn-prev:disabled,
.page-btn-next:disabled {
  opacity: 0.35;
  cursor: default;
}
.page-num {
  font-family: var(--font-sans);
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  background: var(--bg-white);
  border: 2px solid #ccc;
  border-radius: 50%;
  color: var(--text-main);
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 700;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.page-num:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}
.page-num.active {
  color: #fff;
  background: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: rgba(45, 106, 79, 0.4) 0px 6px 20px;
}
.page-info {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 40px;
}

/* ── CONTACT FORM ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}
.contact-info h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 20px;
}
.contact-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.contact-info a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
}
.form-group {
  margin-bottom: 24px;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fdfdfd;
  transition: border-color 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent-color);
  outline: none;
  background: #fff;
}
.form-group textarea {
  height: 150px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ── FOOTER ── */
footer {
  background: var(--casal);
  color: #ffffff;
  margin-top: 80px;
  border-top: 4px solid var(--paco);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 4% 40px;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
}
.footer-logo {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.2;
}
.footer-logo span { color: var(--gold); }
.footer-tagline {
  font-size: 0.82rem;
  font-weight: 500;
  color: #ffffff !important;
  line-height: 1.6;
  margin-bottom: 18px;
}
.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,0.18);
  padding: 7px 14px;
  border-radius: 4px;
  width: fit-content;
  transition: background 0.2s;
}
.footer-linkedin:hover { background: rgba(255,255,255,0.28); }

/* Column headings */
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

/* Nav links */
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  font-size: 0.855rem;
  font-weight: 500;
  color: #ffffff !important;
  line-height: 1;
  margin-bottom: 10px;
}
.footer-col ul li a {
  color: #ffffff !important;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: #fff; }

/* Contact block */
.footer-address {
  font-size: 0.84rem;
  font-weight: 500;
  color: #ffffff !important;
  line-height: 2;
}
.footer-address a {
  color: #ffffff !important;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-address a:hover { color: #fff; }

/* Bottom bar */
.footer-bottom {
  background: var(--paco);
  border-top: none;
  padding: 16px 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
}
.footer-bottom p, .footer-bottom span {
  font-size: 0.78rem;
  color: #ffffff;
}
.footer-bottom a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: #ffffff; }
.footer-bottom-links {
  display: flex;
  gap: 20px;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ── CONNECT SECTION ── */
.connect-section {
  background: var(--bg-soft);
  padding: 80px 4%;
  margin-top: 80px;
}
.connect-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.connect-info { }
.connect-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}
.connect-address {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.connect-btns {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.connect-btn {
  font-size: 1.05rem;
  padding: 18px 40px;
  text-align: center;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-wrapper { padding: 60px 0; }
  .hero-image {
    max-width: 100%;
    margin-bottom: 0;
  }
  .lower-section {
    grid-template-columns: 1fr;
    margin-top: 60px;
    gap: 40px;
  }
  .research-grid, .contact-grid, .form-row {
    grid-template-columns: 1fr;
  }
  nav {
    flex-direction: column;
    gap: 20px;
  }
  .connect-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .connect-section {
    padding: 60px 6%;
  }
  .connect-btn {
    padding: 16px 24px;
    font-size: 1rem;
  }
}
