a {
  color: #0074E1; /*#14A098;*/ /*#0074E1;*/
  text-decoration: none;
}

a:focus,
a:hover {
  color: #ff0066;
  text-decoration: none;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

strong {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
}

.name {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  margin-bottom: 0.5rem;
}

span.highlight {
  background-color: #ffffd0;
}

.header {
  padding: 10px 10px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;    /* push nav to the right */
  align-items: center;
}

/* Style the header links */
.header a {
  color: #0074E1;
  text-align: center;
  padding: 12px;
  text-decoration: none;
  font-size: 20px;
  border-radius: 4px;
}

/* Change the background color on mouse-over */
.header a:hover {
  background-color: white;
  color: #ff0066;
}

/* Match keyboard focus to hover */
.header a:focus {
  background-color: white;
  color: #ff0066;
}

/* Style the active/current link*/
/*.header a.active {
  background-color: white;
  color: #0074E1;
}*/

/* mobile: stack links vertically */
@media screen and (max-width: 500px) {
  .header {
    justify-content: flex-start;
  }

  .header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .header a {
    text-align: left;
  }
}

* {
  box-sizing: border-box;
}


/* Layout for main section: text + sidebar */
.page-layout {
  max-width: 1500px;
  margin: 3rem auto;
  padding: 2rem 2.5%;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

/* Left and right columns */
.intro {
    flex: 3;
    font-size: 18px;
}

/* Profile image */
.profile {
  flex: 2;
  max-width: 40%;
}

.profile-pic {
  width: 100%;
  border-radius: 50%;
  display: block;
}

/* Social icon container */
.social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* The icons themselves */
.social-icon {
    font-size: 3rem;
    color: #000000;
    transition: color 0.2s ease-in-out;
}

/* Hover effect */
.social a:hover {
    text-decoration: none;
}

.social a:hover .social-icon {
    color: #B509AC;
}

/* ===== Responsive breakpoint (mobile) ===== */

@media screen and (max-width: 900px) {
  .page-layout {
    flex-direction: column;
  }

  .profile {
    order: -1;
    max-width: 100%;
    align-self: stretch;
    margin-top: 0;
    margin-bottom: 2rem;
  }

  .profile-pic {
    width: 100%;
    max-width: 100%;
    display: block;
    margin: 0;
    border-radius: 50%;   /* keep it circular on mobile */
  }

  .intro {
    order: 0;
  }
}


/* Responsive: stack on small screens */
@media (max-width: 900px) {
  .research-card {
    flex-direction: column;
  }

  .research-image {
    width: 100%;
  }
}

/* Center main content and limit width */
.page-container {
  max-width: 1500px;
  margin: 4rem auto;
  padding: 0 24px;
}

/* Research card layout: image + text */
.research-section {
  margin-top: 24px;
}

.research-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin: 24px 0;
}

.research-image {
  width: 450px;
  max-width: 100%;
  height: auto;
  border-radius: 5% / 10%;
}

.research-content {
  flex: 1;
}

.research-title {
  margin: 0 0 8px 0;
  font-size: 1.4rem;
}

.research-title a {
  text-decoration: none;
}

.research-title a:hover {
  text-decoration: underline;
}

.research-meta {
  margin-top: 0;
  margin-bottom: 12px;
}

.text-justify {
  text-align: justify;
}



.research-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.research-links a:hover {
    text-decoration: none;
    color: #B509AC;
}

.icon-link {
  margin-right: 0.5rem;
  vertical-align: middle;
}

.icon-link {
    font-size: 3rem;
    color: #000000;
    transition: color 0.2s ease-in-out;
}


.cv-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;  /* space between ai-cv and pdf icon */
}

.cv-icon {
  font-size: 3rem;
}

.cv-pdf-icon {
  font-size: 3rem;
}