body {
    font-family: Charter, Georgia, Helvetica, Arial, sans-serif;
    background-color: whitesmoke;
}

.background {
    width: 800px;
    margin: auto;
    background-color: rgba(245, 245, 245, 0.9);
    padding-top: 20px;
}

.profile {
    clear: both;
    display: block;
    margin: auto;
    align-self: center; 
    padding: 10px;  /* Changed from 2vw to a fixed pixel value */
    width: 300px;
    opacity: 1.0;
    border-style: solid;
    border-width: 3px;
    border-color: whitesmoke/* #5C4033;*/
}

.heading {
    font-family: Charter, Georgia, Helvetica, Arial, sans-serif;
    /* display: flex; */
    justify-content: space-between;
    /* font-size: 20px; */
    position: sticky;
    /* padding: 5px 10px; */
    color: #9B9B9B;
    /* border-radius: 20px; */
    width: 100%;
    box-sizing: border-box;
}

.name {
    align-self: center;
    text-align: center;
    justify-content: space-evenly;
    /* float: left; */
    /* width: 700px; */
    color: #241F20;
    /* opacity: .7; */
    font-size: 80px;
    /* font-size: calc(60vw / 10); */
    padding-bottom: 20px;
}

/* Styles for Menu */
.menu {
    display: flex;
    justify-content: center;
    /* align-items: flex-start; */
    padding-bottom: 30px;
    /* padding:  5px 10px; */
}

.menu-item {
    display: block; 
    padding-top:  30px;
    text-decoration: none;
    color: #6e6c6c;
    font-size: 20px;
    font-weight: bold;
}

.menu-item:hover { 
    color: #78889A;
}

.menu-item::after {
    content: "|"; /* Adding the '|' separator using the ::after pseudo-element */
    margin: 0px 10px; /* Adjust margin to control the space between '|' and menu items */
    color: #9B9B9B; /* Optional: Adjust color of the separator */
}

.menu-item:last-child::after {
    content: none;
}

/* Dropdown Menu Styles */
.menu-dropdown {
    display: none; 
    justify-content: left;
    align-items: flex-start;
    position: relative;
}

.menu-dropdown .dropdown-content {
    display: none;
    position: relative;
    top: 100%; /* This ensures the dropdown starts right below the button */
    right: 0;
    /* background-color: #f9f9f9; */
    /* box-shadow: 0 8px 16px rgba(0,0,0,0.2); */
    /* border-radius: 30px; */
    /* padding:  30px 5px 30px 5px; */
    z-index: 9999;
}

.menu-dropdown .dropdown-content a {
    padding:  10px 0px 10px 30px;
    display: block;
    text-decoration: none;
    color: #9B9B9B;
    /* background-color: #f2f2f2; */
    border-radius: 10px;
    z-index: 9999;
    /* text-align: left; */
    /* border-bottom: 1px solid #eaeaea; */
}

.menu-dropdown .dropdown-content a:hover {
    color: #78889A;
    /* background-color: #f2f2f2; */
    /* background-color: red; */
}

.menu-toggle {
    background: none;
    border: none;
    /* padding: 10px 20px;    Increase or decrease as needed */
    font-size: 30px;       /* Adjust font size as needed */
    width: auto;           /* You can set a specific width or use auto */
    height: auto;    
    cursor: pointer;
    color: #9B9B9B;
    /* opacity: .7; */
    letter-spacing: 1.5px; /* A bit more spacing between letters */
    display: flex;
    align-items: left;
    gap: 10px;
    
}

.menu-toggle:hover {
    color: #78889A;
}

.home {
    width: 800px;
    margin: auto;
    padding: 2px;
    font-size: 16px;
    box-sizing: border-box;  /* Ensure padding doesn't add to total width */

}

p {
    line-height: 1.7;
    font-weight: 100;
    color: #000;
}

p a, ul a {
    text-decoration: none;
    color: #78819b;

    /* padding:  10px 20px 30px 10px; */
}

    
p a:hover {
    color: #4f5965;
    text-decoration: underline;
}

.footer {
    font-family: Charter, Georgia, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    color: black;
    opacity: 70%;
    text-align: center;
    align-items: center;
    margin: auto;
    /* width: 40%; */
    font-size: 30px;
    font-weight: 200;
}

.footer h2 {
    text-align: center;
}

.icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* This will wrap icons to the next line if they can't fit in one line */
    list-style-type: none;
}


.icon a {
    text-decoration: none;
    padding: 20px;
    color: #5A5B62;
}
    
.icon a:hover {
    opacity: 0.4;
    color: darkslategray;
}


ul {
    list-style-type: disc;
    padding:  0px 0px 0px 20px;
    margin: 0px;
}

.teaching-heading {
    font-family: Charter, Georgia, Helvetica, Arial, sans-serif;
    color: black;
    font-weight: 400;
    font-size: 30px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding-left: 0px;
    padding-right: 0px;
    box-sizing: border-box;  /* Ensure padding doesn't add to total width */

}

.left-aligned-hr {
    width: 60px;
    height: 0px;
    border: none;
    border-top: 6px solid #5A5B62;
    margin-top: 50px;
    margin-bottom: 30px;
    margin-inline-start: 0;
  }

.center-aligned-hr {
    width: 100%;
    height: 0px;
    border: none;
    border-top: 3px solid black;
    opacity: 30%;
    margin-top: 70px;
  }

/* new begin */
.publication {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}
.conf-box {
    min-width: 70px;
    padding: 5px;
    font-weight: bold;
    margin-right: 40px;
    text-align: right;
    font-size: 16px;
    line-height: 1.5;
}
.paper-info {
    flex: 1;
}
.buttons {
    margin-top: 12px;
}
.buttons a {
    display: inline-block;
    margin-right: 0px;
    padding: 6px 10px;
    color: #444;
    text-decoration: none;
    /* border: 2px solid lightgrey; */
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    background-color: lightblue;
}
.buttons a:hover {
    /* background-color: #0056b3; */
    /* color: white; */
    text-decoration: underline;
    transform: scale(1.05);
}
.co-first {
    font-size: 12px;
    font-style: italic;
    margin-bottom: 25px;
    text-align: center;
}

.authors {
    color: #444;
    font-size: 16px;
    display: block;
    margin-top: 6px;
}

.conf {
    color: #444;
    font-style: normal;
    font-size: 16px;
    margin-top: 6px;
    font-style: italic;
    display: block;
}
.award {
    font-weight: bold;
    font-size: 16px;
    color: teal;
    display: inline-block;  /* Ensure the text stays next to the icon */
    margin-left: 8px;  /* Add some space between the icon and the text */
    margin-top: 6px;
}

.award-icon {
    font-size: 18px;  /* Make the icon slightly bigger, adjust as needed */
    vertical-align: middle;  /* Align the icon with the text */
    color: teal;
}
.paper a{
    text-decoration: none;
    font-weight: bold;
    color: #444;
}

.paper a:hover{
    color: black;
    transform: scale(1.05);
}
/* new end */

/* .publications {
    font-family: Charter,Georgia,Helvetica,Arial,sans-serif;
    font-size: 20px;
}

.authors {
    color: #666666;
    font-size: 14px;
}

.conf {
    color: black;
    font-style: normal;
    font-size: 16px;
} */

ul.teaching-list li {
    margin-bottom: 10px; /* Add space between list items */
}

.teaching {
    color: black;
    font-size: 16px;
    font-weight: 100;
    padding: 10px;
}

.teaching:hover {
    color: gray;
}

.photo-gallery {
    padding-top: 10%;
    margin: auto;
    overflow: hidden;
    width: 800px;
}

.photos .photo-item {
    width: 100%; 
    margin-right: 2%;
    margin-bottom: 15%;
    margin-top: 5%;
    position: relative;
}

.photos img {
    width: 100%; 
    /* border: 1px solid #ccc; */
    /* border-radius: 5px; */
    display: block; 
    margin-bottom: 5px; 
}

.photo-label {
    font-family: Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: black;  /* Subdued gray color for text */
    position: relative;  /* Absolute positioning */
    right: 0;  /* Align to the right side of the .photo-item */
    bottom: 0;  /* Position it at the bottom, adjust as needed */
    padding: 2px 0px;  /* Padding to give space around the text */
    border-radius: 0px;  /* Optional: Makes the background slightly rounded */
}

.photos .photo-item:nth-of-type(2n) {
    margin-right: 0;
}

.photos .photo-item:nth-of-type(odd) {
    clear: both;  /* Clears the float for every odd-numbered item, ensuring a fresh line */
}

.photo-gallery h2 {
    font-family: Optima, Segoe, "Segoe UI", Candara, Calibri, Arial, sans-serif;
    color: black;  /* Subdued gray color for text */
    /* background-color: rgba(255, 255, 255, 0.7);  Semi-transparent white background */
    /* border-top: 5px solid #9B9B9B; */
    padding-top: 0px ;  /* Padding around the text */
    margin-top: 4%;
    margin-bottom: 0px;  /* Space between the title and the photos */
    font-size: 20px;  /* Larger font size for a heading feel */
    text-align: center;  /* Left-aligned text */
    box-sizing: border-box;  /* Ensure padding doesn't add to total width */
    font-weight: bold;
}

.photo-gallery h3 {
    /* font-family: 'Roboto', sans-serif; */
    font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
    font-weight: 200;
    clear: both;
    display: block;
    color: black;  /* Subdued gray color for text */
    /* background-color: rgba(255, 255, 255, 0.7);  Semi-transparent white background */
    /* padding: 5px 15px;  Padding around the text */
    margin-top: 2%;
    margin-bottom: 0%;  /* Space between the title and the photos */
    font-size: 60px;  /* Larger font size for a heading feel */
    text-align: center;  /* Left-aligned text */
    box-sizing: border-box;  /* Ensure padding doesn't add to total width */
}

.video-item {
    margin-bottom: 20px; /* Space below each video */
    box-sizing: border-box; /* To make sure padding and borders are included in the dimensions */
    position: relative; /* To potentially position elements inside it */
}

.video-item video {
    width: 100%; /* To make the video stretch to the width of .video-item */
    height: auto; /* To maintain aspect ratio */
}

.video-label {
    display: block;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent background */
    padding: 5px 10px;
    margin-top: 5px;
    color: #757575; /* Subdued text color */
    border-radius: 3px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Optional shadow for depth */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}


/* Media query for smaller screens */


@media screen and (max-width: 1100px) { /* Adjust this breakpoint as necessary */

    .background {
        /* ... other styles ... */
        width: 100%;
    }

    .name {
        font-size: calc(80vw / 10);
        padding-bottom: 0px;
    }

    .menu-item {
        display: block; 
        text-decoration: none;
        color: #9B9B9B;
        font-size: calc(40vw / 20);
    }

    .home {
        width: 80%;
    }

    .photo-gallery {
        width: 100%;
    }

    .photo-label {
        font-size: 10px;
        margin-top: 0%;
    }
}

@media screen and (max-width: 400px) { /* Adjust this breakpoint as necessary */
    .name {
        font-size: calc(80vw / 5);
    }
    
    .menu-item {
        display: none; /* Menu items hidden */
    }

    .menu-dropdown {
        display: block;
    }

    .menu-dropdown:hover .dropdown-content {
        display: block;
    }

    .profile {
        clear: both;
        display: block;
        margin: auto;
        align-self: center; 
        padding: 0px;  /* Changed from 2vw to a fixed pixel value */
        width: 75vw;
        opacity: 1.0;
        border-style: solid;
        /* border-width: 3px; */
        border-color: whitesmoke/* #5C4033;*/
    }
}

/* students section */

.student-entry {
    margin-bottom: 18px;
}

.student-header {
    display: flex;
    flex-wrap: wrap;          /* allows wrapping if line is long */
    column-gap: 4px;          /* small space between name, dots, title */
    font-size: 1.05em;
    font-weight: normal;      /* only the name will be bold */
}

/* Name bold */
.student-name {
    font-weight: 600;
}

/* Years: italic + right aligned across all entries */
.student-years {
    font-style: italic;
    margin-left: auto;        /* pushes years to the right edge */
    text-align: right;
}

/* These remain inline flex items */
.student-name,
.student-title,
.student-years,
.student-sep {
    display: inline;
}

.student-sep {
    color: #666;
}

.student-details {
    margin-top: 2px;
    color: #555;
}

.student-impact {
    margin-top: 6px;
    padding-left: 20px;
    color: #555;
    font-size: 0.9em;
}

/* Teaching + volunteer entries match the students layout */

.teaching-entry {
    margin-bottom: 18px;
}

.teaching-header {
    display: flex;
    flex-wrap: wrap;
    column-gap: 4px;
    font-size: 1.05em;
    font-weight: normal;
    text-align: left;
}

/* Bold role/title */
.teaching-role {
    font-weight: 100;
}

/* Right-aligned years */
.teaching-years {
    font-style: italic;
    margin-left: auto;
    text-align: right;
}

/* Links inherit same look */
.teaching-link {
    color: inherit;
    text-decoration: none;
}

.teaching-link:hover {
    text-decoration: underline;
}
