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

body {
  font-family: Georgia, "Times New Roman", serif;
  color: #24201d;
  background: #ffffff;
  line-height: 1.7;
}

.navbar {
  background: #24352f;
  color: white;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 55px;
}

.name {
  font-size: 1.4rem;
  letter-spacing: 1px;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 35px;
  font-size: 1rem;
}

.hero {
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 620px;
  background: #f6f1e8;
}

.photo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.photo-box img {
  width: 100%;
  max-width: 420px;
  height: 520px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.18);
}

.intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px;
}

.intro h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 10px;
}

.intro h2 {
  font-size: 1.7rem;
  font-weight: normal;
  margin-bottom: 25px;
  color: #6f7f68;
}

.intro p {
  max-width: 560px;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.button {
  display: inline-block;
  width: fit-content;
  padding: 12px 28px;
  border: 1px solid #6f7f68;
  color: #6f7f68;
  text-decoration: none;
  background: transparent;
}

.button:hover {
  background: #6f7f68;
  color: white;
}

.section {
  padding: 80px 15%;
  text-align: center;
}

.section h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.section p {
  max-width: 750px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.light {
  background: #f6f1e8;
}

footer {
  background: #24352f;
  color: white;
  text-align: center;
  padding: 25px;
}

@media (max-width: 850px) {
  .navbar {
    height: auto;
    flex-direction: column;
    padding: 20px;
    gap: 12px;
  }

  nav a {
    margin: 0 10px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .photo-box {
    padding: 40px 25px 10px;
  }

  .photo-box img {
    height: 430px;
  }

  .intro {
    padding: 40px 30px 70px;
    text-align: center;
    align-items: center;
  }

  .intro h1 {
    font-size: 2.8rem;
  }
}

/* Updated color palette */
.navbar,
footer {
  background: #24352f;
}

body {
  color: #24201d;
  background: #ffffff;
}

.hero,
.light {
  background: #f6f1e8;
}

.intro h2 {
  color: #6f7f68;
}

.button {
  border-color: #6f7f68;
  color: #6f7f68;
}

.button:hover {
  background: #6f7f68;
  color: white;
}

.cv-page {
  background: #f6f1e8;
  min-height: 100vh;
  padding: 80px 15%;
}

.cv-page h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 3rem;
  text-align: center;
  margin-bottom: 50px;
  color: #24201d;
}

.cv-block {
  max-width: 850px;
  margin: 0 auto 45px;
  text-align: left;
}

.cv-block h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #24352f;
}

.cv-block p {
  font-size: 1.1rem;
}

.course-list {
  margin-left: 25px;
  line-height: 1.9;
  font-size: 1.05rem;
}

/* CV page layout */

.cv-site-page {
  background: #e6e6e6;
  padding: 14px 0 45px;
  min-height: 100vh;
}

.cv-content-card {
  background: #ffffff;
  max-width: 1120px;
  margin: 0 auto;
  color: #333333;
  font-family: Arial, Helvetica, sans-serif;
}

.cv-page-title {
  background: #f7f7f7;
  color: #5a5a5a;
  font-size: 1.7rem;
  padding: 24px 22px;
  font-family: Georgia, "Times New Roman", serif;
}

.cv-section-block {
  padding: 24px 22px;
  text-align: left;
}

.cv-section-block h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  color: #444444;
  margin-bottom: 20px;
}

.cv-section-block h2 {
  font-size: 1rem;
  color: #333333;
  margin: 24px 0 16px;
  font-weight: bold;
}

.cv-section-block p {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 22px;
}

.cv-section-block a {
  color: red;
  text-decoration: none;
}

.cv-section-block a:hover {
  text-decoration: underline;
}

.orcid-line {
  margin-top: 24px;
}

.cv-divider {
  border: none;
  border-top: 2px solid #777777;
  margin: 0 22px;
}

.cv-embed-box {
  width: 100%;
  height: 610px;
  background: #222222;
  margin-top: 20px;
  overflow: hidden;
}

.cv-embed-box iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: white;
}

.course-heading {
  margin-top: 26px;
  margin-bottom: 18px;
}

.cv-course-list {
  list-style-type: square;
  margin-left: 22px;
  margin-bottom: 28px;
  padding-left: 14px;
}

.cv-course-list li {
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 4px;
}

/* Mobile CV page */

@media (max-width: 850px) {
  .cv-site-page {
    padding: 0;
  }

  .cv-content-card {
    width: 100%;
  }

  .cv-page-title {
    font-size: 1.5rem;
  }

  .cv-section-block {
    padding: 22px 18px;
  }

  .cv-embed-box {
    height: 480px;
  }
}

/* Make CV page font match navigation style */

.cv-site-page,
.cv-content-card,
.cv-page-title,
.cv-section-block,
.cv-section-block h1,
.cv-section-block h2,
.cv-section-block p,
.cv-course-list,
.cv-course-list li {
  font-family: Georgia, "Times New Roman", serif;
}

/* Zoom out embedded CV */

.cv-embed-box {
  height: 750px;
  overflow: hidden;
  background: #ffffff;
}

.cv-embed-box iframe {
  width: 125%;
  height: 125%;
  transform: scale(0.8);
  transform-origin: top left;
  border: none;
}

/* Final CV color override: match green and white navigation */

.cv-site-page {
  background: #ffffff !important;
}

.cv-content-card {
  background: #ffffff !important;
  color: #24201d !important;
}

.cv-page-title {
  background: #24352f !important;
  color: #ffffff !important;
}

.cv-section-block {
  background: #ffffff !important;
}

.cv-section-block h1,
.cv-section-block h2 {
  color: #24352f !important;
}

.cv-section-block p,
.cv-course-list li {
  color: #24201d !important;
}

.cv-divider {
  border-top: 2px solid #24352f !important;
}

.cv-section-block a {
  color: #24352f !important;
  font-weight: bold;
  text-decoration: none;
}

.cv-section-block a:hover {
  color: #6f7f68 !important;
  text-decoration: underline;
}

.cv-embed-box {
  background: #ffffff !important;
}
