body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f8ef;
}


body,
td,
th,
tr,
p,
a {
    font-family: "TeXGyrePagella", "Palatino Linotype", "Book Antiqua", Palatino, serif; 
}


.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.about-text h1 {
    font-size: 2em;
    margin-bottom: 0.5em;
}


.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    font-family: "TeXGyrePagella", "Palatino Linotype", "Book Antiqua", Palatino, serif; 

}

.about-text {
    flex: 1;
    padding-right: 20px;
}

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

.profile-image img {
    width: 110%;
    max-width: 350px ;
    height: auto;
    border-radius: 50%; /* Circle image */
    display: flex;
    margin-left: auto;
}

.bio {
    padding: 20px;
}

.links {
    text-align: center;
}

.links a {
    margin: 0 10px;
    text-decoration: none;
    color: #007BFF;
}

.links a:hover {
    text-decoration: underline;
}

.hr-edge-weak {
    border: 1px solid #ddd;
    margin: 20px 0;
}

h2, h3, h4 {
    font-size: 1.5em;
}

/* contact form */
.contact-info {
    display: flex;
    gap: 20px; /* Space between the email and office info */
    margin-top: 10px; /* Optional: add margin to separate from other content */
}

.contact-info p {
    margin: 0; /* Remove default margin from the paragraphs */
}


/* Publication and Project Sections */
.publication{
    display: flex;
    align-items:center; /* Vertically centers the image with the text */
    margin-bottom: 10px;
}

.publication-image{
    width: 40%;
    margin-right: 20px;
    height: auto; /* Allow the image height to adjust based on its content */
    display: flex;
    align-items: center; /* Center the image inside the container */
    justify-content: center; /* Center the image horizontally inside the container */
    border-radius: 15px; /* Rounded corners for the image */
    overflow: hidden; /* Ensure rounded corners are visible */
}

/* Styling for images and video inside publication image container */
.publication-image img,
.publication-image video {
    max-width: 100%;
    max-height: 213px; /* Ensure the image/video doesn't exceed the container's height */
    height: auto; /* This will keep the aspect ratio of the image */
    object-fit: cover; /* This will ensure the image/video fills the container */
    object-position: center;
    transition: opacity 0.5s ease-in-out; /* Smooth transition between images/videos */
    width: 100%; /* Ensure the image/video takes full width */
    border-radius: 10px; /* Optional: rounded corners */
}

.publication-content{
    padding-bottom: 10px;  /* Make text container taller */
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.publication-content h2 {
    font-size: 1.2em;
    line-height: 1.1; /* Tighter line height for the title */
    margin-bottom: -0.2em; /* Optional: reduce the bottom margin */
}

.publication-content p {
    line-height: 1.4; /* Tighter line height for the paragraphs */
    margin-bottom: -0.5em; /* Optional: reduce the space between paragraphs */
    margin-top: 0.7em;
    font-family: "TeXGyrePagella", "Palatino Linotype", "Book Antiqua", Palatino, serif; 

}


/* Style for the project image */
.project-image {
    width: 40%;
    margin-right: 20px;
    height: auto; /* Allow the image height to adjust based on its content */
    display: flex;
    align-items: center; /* Center the image inside the container */
    justify-content: center; /* Center the image horizontally inside the container */
    border-radius: 15px; /* Rounded corners for the image */
    overflow: hidden; /* Ensure rounded corners are visible */
}

.project-content {
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: "TeXGyrePagella", "Palatino Linotype", "Book Antiqua", Palatino, serif; 

}

#projects h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.project-image img {
    max-width: 100%;
    height: auto; /* This will keep the aspect ratio of the image */
    /* max-height: 100%; Ensure the image doesn't exceed the container's height */
    max-height: 188px;
    object-fit: cover; /* This will ensure the image fills the container */
    object-position: center;
    transition: opacity 0.5s ease-in-out; /* Smooth transition between images */
    width: 100%; /* Ensure the image takes full width */
    border-radius: 10px; /* Optional: rounded corners */
}

#b_pr1-img {
    object-fit: contain; /* This will crop the image to fill the container */
    width: 100%;
    height: auto;
    /* border-radius: 10px; Optional: keeps the rounded corners */
}


#a_pr3-img {
    object-fit: cover; /* This will crop the image to fill the container */
    width: 100%;
    height: auto;
    object-position: center;
    max-width: 100%;
    max-height: 208px;
    ; /* Ensure the image doesn't exceed the container's height */
    /* border-radius: 10px; Optional: keeps the rounded corners */
}


.project-content h2 {
    font-size: 1.2em;
    line-height: 1.1; /* Tighter line height for the title */
    margin-bottom: -0.6em; /* Optional: reduce the bottom margin */
    margin-top: -0.4em;
}

.project-content p {
    line-height: 1.4; /* Tighter line height for the paragraphs */
    margin-bottom: -0.6em; /* Optional: reduce the space between paragraphs */
}

/* Vertical alignment and spacing */
.project {
    display: flex;
    align-items: center; /* Vertically center image and text */
    margin-bottom: 30px; /* Space between different projects */
}

.project-content li {
    line-height: 1.2; /* Increase line height for better readability */
    margin-bottom: 0.1em; /* Optional: add some space between list items */
}

.project-content ul{
    line-height: 1.2; /* Increase line height for better readability */
    margin-bottom: -0.7em; /* Optional: add some space between list items */
}
/* Awards Section */
.awards-list {
    list-style: none;
    padding: 0;
}

.awards-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}




/* Academic Services Section */
#academic-services {
    margin: 10px 0;
    margin-bottom: -5px;
}

.academic-services-content {
    background-color: rgba(255, 255, 255, 0.1); /* Optional: slight transparency */
    padding: 10px;
    border-radius: 10px;
}

#academic-services h3 {
    font-size: 1.5em;
    margin-bottom: -14px;
}

.academic-services-content h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.academic-services-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

.academic-services-content ul li {
    font-size: 1.1em;
    line-height: 1.6em;
}


/* Slideshow Section */
#slideshow-section {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

#slideshow {
    position: relative;
    height: 400px;
    width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image covers the entire container */
}

.slide h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 20px;
    text-align: left;
    box-sizing: border-box;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 2em;
    color: #fff;
    padding: 10px;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Footer Section */
footer {
    text-align: center;
    padding: -1px;
    background-color: transparent;
    /* border-top: 1px solid #ddd; */
}



/* Media Queries for Responsive Design */
@media screen and (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 10px;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    .publication-content h2 {
        font-size: 1.2em;
        line-height: 1.1; /* Tighter line height for the title */
        margin-bottom: -0.2em; /* Optional: reduce the bottom margin */
    }

    .profile-image img {
        width: 100%;
        max-width: 260px ;
        height: auto;
        border-radius: 30%; /* Circle image */
        display: flex;
        object-position: center;
    }

    .publication, .project {
        flex-direction: column;
        align-items: flex-start;
    }

    .publication-image, .project-image {
        /* width: 100%;
        height: auto; */
        display: flex;
        margin-bottom: 10px;
        max-width: 100%;
        min-width: 60%;
        height: auto; /* This will keep the aspect ratio of the image */
        /* max-height: 100%; Ensure the image doesn't exceed the container's height */
        max-height: 188px;
        object-fit: contain; /* This will ensure the image fills the container */
        object-position: center;
        transition: opacity 0.5s ease-in-out; /* Smooth transition between images */
        border-radius: 10px; /* Optional: rounded corners */
        /* margin-left: auto; */
        margin: 0 auto 20px auto; /* Center the image and add some space below */
        overflow: hidden; /* Ensure rounded corners are visible */

    }
    
    .project-content {
        text-align: center; /* Center the text content */
    }
    
    .publication-content, .project-content {
        width: 100%;
    }








    
    /* Slideshow Section */
    #slideshow-section {
        position: relative;
        display: flex;
        width: 100%;
        max-width: 700px;
        margin: 0 auto;
    }

    #slideshow {
        position: relative;
        height: 400px;
        width: 100%;
        overflow: hidden;
    }

    .slide {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        transition: opacity 1s ease-in-out;
    }

    .slide.active {
        opacity: 1;
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Ensure the image covers the entire container */
    }

    .slide h3 {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        margin: 0;
        padding: 10px;
        background-color: rgba(0, 0, 0, 0.5);
        color: #fff;
        font-size: 20px;
        text-align: left;
        box-sizing: border-box;
    }

    .prev, .next {
        position: absolute;
        top:20%;
        transform: translateY(-40%);
        cursor: pointer;
        font-size: 1.5em;
        color: #fff;
        padding: 10px;
    }

    .prev {
        left: 6px;
    }

    .next {
        right: 6px;
    }

    
    
}
/* Further adjustments for very small screens */
@media screen and (max-width: 600px) {


    .slide h3 {
        font-size: 16px;
    }
}

/* Further adjustments for very small screens */
@media screen and (max-width: 480px) {
    .about-text h1 {
        font-size: 1.5em;
    }

    /* h2, h3, h4 {
        font-size: 1.2em;
    } */

    .slide h3 {
        font-size: 12px;
    }
}
.denotes-note {
    margin: -7px 0 -8px;  /* Top, right/left, bottom margins */
    font-size: 0.9em;
    color: #666;
}

@media screen and (max-width: 768px) {
    .denotes-note {
        margin: 10px 0 30px;  /* Increase bottom margin on mobile */
    }
}