/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Layout fix for sticky footer */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Body */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #34495E; /* Slate Gray */
    background-color: #ECF0F1; /* Light Gray */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: #FFFFFF;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .logo {
    font-weight: bold;
    font-size: 1.3rem;
    color: #2C3E50; /* Deep Blue-Gray */
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar .nav-links li a {
    text-decoration: none;
    color: #34495E;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar .nav-links li a:hover {
    color: #5D6D7E; /* Slightly lighter muted blue on hover */
}

/* Profile Layout */
main.profile-layout {
    display: flex;
    max-width: 1100px;
    margin: 50px auto;
    gap: 50px;
    padding: 0 20px;
    flex: 1; /* expand to push footer down */
}

/* Left Column */
.left-column {
    flex: 0 0 260px;
    text-align: center;
}

.left-column .profile-pic {
    width: 200px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 4px solid #2C3E50;
}

.left-column h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #2C3E50;
}

.left-column .title,
.left-column .affiliation {
    font-size: 0.95rem;
    color: #7F8C8D;
    margin-bottom: 10px;
}

.left-column .social-links a {
    margin: 0 5px;
    display: inline-block;
}

.left-column .social-links img {
    width: 25px;
    height: 25px;
    transition: transform 0.3s;
}

.left-column .social-links img:hover {
    transform: scale(1.2);
}

/* Right Column */
.right-column {
    flex: 1;
}

.right-column h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #2C3E50;
}

.right-column h3 {
    font-size: 1.3rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #2C3E50;
}

.right-column p,
.right-column ul {
    margin-bottom: 15px;
    color: #34495E;
}

/* Text Links (inside right column) */
.right-column a {
    color: #339999; /* More visible muted teal */
    text-decoration: none;
    transition: color 0.3s;
}

.right-column a:hover {
    color: #2C3E50;
}


/* Publications */
.publication-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.publication-item {
    display: flex;
    align-items: center; /* center vertically */
    gap: 20px;
}

.publication-item img.pub-thumb {
    width: 150px;       /* larger thumbnail */
    height: auto;       /* maintain aspect ratio */
    object-fit: contain; /* no cropping */
    border-radius: 4px;
    flex-shrink: 0;
}

.publication-item .pub-info {
    flex: 1; /* text takes remaining space */
}

/* Responsive */
@media (max-width: 900px) {
    .profile-layout {
        flex-direction: column;
    }

    .left-column {
        margin-bottom: 30px;
    }

    .publication-item {
        flex-direction: column; /* stack image above text */
        align-items: center;
        text-align: center;
    }

    .publication-item img.pub-thumb {
        width: 120px;
        margin-bottom: 10px;
    }
}

.course {
    margin-bottom: 20px;
}

.course h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: #2C3E50; /* matches your headings */
}

.supervision-topics {
    margin: 10px 0 20px 20px; /* pushes list inward */
    padding-left: 20px;       /* ensures proper indentation */
}

.course-meta {
    font-size: 0.95rem;
    color: #7F8C8D; /* muted gray */
    margin-bottom: 8px;
}

.course-meta .divider {
    margin: 0 10px; /* breathing room */
    color:#34495E; /* same deep blue-gray as headers */
}

.section-divider {
    border: 0;
    height: 1px;
    background-color: #b0b4b8; /* light gray */
    margin: 10px 0 20px 0;     /* space around the line */
}

.left-column .social-links img {
    width: 25px;
    height: 25px;
    margin: 5px 0; /* stack vertically */
    filter: invert(35%) sepia(71%) saturate(472%) hue-rotate(152deg) brightness(90%) contrast(90%);
    transition: transform 0.3s;
}

.left-column .social-links img:hover {
    transform: scale(1.2);
}

.left-column .social-links a {
    color: #339999; /* icon inherits this */
}
.left-column .social-links img {
    fill: currentColor;
}

footer {
  background-color: #FFFFFF;
  padding: 20px 50px;
  border-top: 1px solid #BDC3C7;
  font-size: 0.9rem;
  color: #34495E;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left p {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-left .divider {
  color: #2C3E50;
  font-weight: 600;
}

.cv-link {
  color: #34495E;
  text-decoration: none;
}

.cv-link:hover {
  text-decoration: underline;
}

/* Right column */
.footer-right {
  display: flex;
  gap: 80px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-item img {
  width: 18px;
  height: 18px;
}


/* Footer contact icons using filter for color */
footer .contact-item img {
    width: 18px;
    height: 18px;
    display: inline-block;
    object-fit: contain;
    filter: none; /* reset any inherited filter */
    transition: transform 0.3s;
}

footer .contact-item img[alt="Email"] {
    filter: brightness(0) saturate(100%) invert(33%) sepia(56%) saturate(3661%) hue-rotate(344deg) brightness(98%) contrast(89%);
}

footer .contact-item img[alt="LinkedIn"] {
    filter: brightness(0) saturate(100%) invert(30%) sepia(84%) saturate(4156%) hue-rotate(181deg) brightness(96%) contrast(104%);
}

footer .contact-item img[alt="GitHub"] {
    filter: brightness(0) saturate(100%) invert(1%) sepia(14%) saturate(533%) hue-rotate(314deg) brightness(96%) contrast(84%);
}

footer .contact-item img[alt="ORCID"] {
    filter: brightness(0) saturate(100%) invert(72%) sepia(60%) saturate(472%) hue-rotate(29deg) brightness(94%) contrast(93%);
}

footer .contact-item img:hover {
    transform: scale(1.2);
}

/* Header divider */
#header {
    border-bottom: 1px solid #BDC3C7; /* light gray, same as footer top border */
    margin-bottom: 20px; /* optional spacing below divider */
}

.contact-info {
    margin: 10px 0;
}

.contact-info dt {
    float: left;
    clear: left;
    width: 70px; /* width of label */
    font-weight: bold;
}

.contact-info dd {
    margin: 0 0 0px 80px; /* indent to line up under label */
}
