/* General Styles */
body {
    margin: 0;
    font-weight: 300;
    font-size: 17px;
    font-family: 'Quicksand', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    box-sizing: border-box;
}

header {
    color: rgb(0, 0, 0);
    padding: 1rem 0;
    width: 100% ; /*   Ensure it spans the full width */
    margin: 0 auto;  /* Center the header */
}

a:link {
    color: #ab82c5;
    background-color: transparent;
    font-weight: 400;
    text-decoration: none;
}

a:visited {
    color: #57068c;
    background-color: transparent;
    text-decoration: none;
}



.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px; /* Adjust the size of the logo */
    width: auto;
}

.logo-container a {
    color: rgb(0, 0, 0);         /* Use the same color as the surrounding text */
    font-weight: bold;      /* Optional: keep the text bold */
    margin-left: 0.5rem;
}

.navbar {
    width: 100%;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    max-width: 800px; /* matching the rest of the page */
    margin: 0 auto; /* Center the container horizontally */
    /* padding: 0 15px; Add padding for better spacing on smaller screens */
    display: flex;
    justify-content: space-between;
    align-items: center; 
    box-sizing: border-box;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 1rem;
}

.nav-links a {
    color: rgb(0, 0, 0);
    text-decoration: none;
}

.container {
    max-width: 800px; /* Adjust the width to your preference */
    margin: 0 auto;   /* Center the container */
    padding: 0 15px; /*  Add some padding for better spacing on small screens */
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        width: 100%;      /* Take up the full width of the screen */
        /* padding: 0 10px;  Add some padding for smaller screens */
        gap: 0.5rem; /* Adjust spacing */
    }
}

.hero {
    color: black;
    text-align: center;
    padding: 4rem 0rem 0.5rem;
}

.finalhero {
    color: black;
    text-align: left;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 4rem;
}

.hero p {
    text-align: left;
}

section {
    text-align: center;
}

.papers-list{
    text-align: left;
}

.members-section {
    background: #eee6f3;
    margin: 2rem 0;
}

h2 {
    padding: 2rem;
    font-weight: 300; /* Lighter weight */
    padding-top: 1rem;
    padding-bottom: 1.5rem;
    transition: background-color 0.6s, transform 0.3s ease;
}

h2:hover {
    cursor: pointer;
    background-color: #ab82c5; /* Light background on hover */
    transform: scale(1.03); /* Slightly increase size to "pop" */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

h2:active {
    transform: scale(1); /* Return to original size when clicked */
}

.members {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 items per row */
    gap: 1rem;
    margin-top: 1rem;
}

/* For very small screens (e.g., mobile phones) */
@media (max-width: 480px) {
    .hero {
        color: black;
        text-align: center;
        padding: 1rem 0rem 0.5rem;
    }
    .hero h1 {
        font-size: 2.5rem;
        font-weight: 400;
        margin-bottom: 0rem;
    }
    .members {
        grid-template-columns: repeat(2, 1fr);
        /* grid-template-columns: 1fr; 1 item per row */
        gap: 0.5rem;
    }
}

.member {
    text-align: center;
    transition: transform 0.5s ease, box-shadow 0.3s ease; /* Smooth transition for pop effect */
}


.member:hover {
    transform: scale(1.05); /* Slightly increase size on hover */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
    background-color: #ab82c5;
    cursor: pointer; /* Change cursor to pointer to indicate interactivity */
}

.member-link {
    text-decoration: none;
    color: inherit;
}

.member-photo {
    width: 150px; /* Square size for the profile picture */
    height: 150px;
    object-fit: cover;
    border-radius: 50%; /* Make the image round */
    margin-bottom: 1rem;
}

h3 {
    margin: 0rem 0;
    font-size: 1.2rem;
    font-weight: 400;
    font-family: 'Quicksand', sans-serif;
    color:rgb(0, 0, 0);
}

.member p {
    font-size: 0.8rem;
    color: #555;
    margin-top: 0; /* Removes the top margin */
    padding-top: 0;
    padding-left: 1rem;
    text-align: left; 
    /* Align the description to the left */
    margin-left: 5px; /* Adjust this value to align it with the left side of the picture */
    margin-right: 5px;
}

.search-container {
    position: relative;
    padding: 0px 2.5rem 0px 0px;
}
#searchBox {
    font-size: 1.5rem;
    width: 100%;
    padding: 15px 0rem 15px 2.5rem;
    border-radius: 12px;
    border: 2px solid #eee6f3;
    transition: all 0.3s ease;
}
#searchBox::placeholder {
    color: #b8b8b8;  /* Light gray color for the placeholder text */
}
#searchBox:focus {
    outline: none;  /* Remove default focus outline */
    border-color: #ab82c5;  /* Darker border when focused */
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);  /* Light blue glow on focus */
}
.hidden {
    display: none;
}
.search-icon {
    position: absolute;
    left: 10px;  /* Position the icon to the left */
    top: 50%;
    transform: translateY(-50%);  /* Vertically center the icon */
    font-size: 1.5rem;  
    color: #ab82c5; 
}

.author-div h2 {
    padding: 0.5rem;
    font-weight: 300; /* Lighter weight */
    padding-top: 1rem;
    padding-bottom: 1.5rem;
    transition: background-color 0.6s, transform 0.3s ease;
}


.footer-image {
    text-align: center; /* Centers the content inside the div */
    margin-bottom: 1rem; /* Optional: adds space between image and footer */
    width: 100%; 
    height: auto;
}

footer {
    background: #6d6d6d;
    color: white;
    text-align: right;
    padding: 1rem 0;
    line-height: 0.5rem;
}
