/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

/* Body */
body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;  /* Prevent horizontal overflow */
}

/* Header and Navigation */
header {
    /*background-color: #FFC196;*/
    /*border-bottom: 1px solid #e0e0e0;*/
    padding: 15px 20px;
    /*position: sticky;*/
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* Flexbox Layout for Desktop */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%; /* Ensure it stretches across the screen */
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    width: 100%;
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 2rem;
    margin-left: auto;
    padding: 10px;
}

/* Responsive Navigation for Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show the hamburger icon on mobile */
    }

    /* Hide Navigation Links by Default on Mobile */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 60%;  /* Make it only cover 60% of the screen */
        background: #fff;
        padding: 20px;
        position: fixed;
        top: 13vh;
        right: 0;  /* Slide in from the right side */
        height: 50vh;
        z-index: 999;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);  /* Start off the screen to the right */
        transition: transform 0.3s ease-in-out;
        align-items: flex-start; /* Align items to the top */
        justify-content: flex-start; /* Prevent centering */
    }

    /* Show Navigation Links when Active */
    .nav-links.active {
        transform: translateX(0);  /* Slide into view from the right */
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        text-decoration: none;
        color: #333;
        padding: 10px;
        transition: color 0.3s ease;
    }

    /* Add an Overlay for Better UX */
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .overlay.active {
        display: block;
    }
}

/* Navigation Links (Desktop) */
.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;  /* Prevent the links from wrapping */
    justify-content: flex-end;
    align-items: center;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    white-space: nowrap; /* Prevent breaking into multiple lines */
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 3px;
}

.nav-links a:hover {
    color: #000000;
    background-color: rgba(41, 123, 230, 0.2);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: left;
    padding: 60px 20px;
    /* background-color: #fff; */
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid #e0e0e0; /* Added a subtle border for separation */
}

.hero-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    width: 100%;
}

/* Profile Section */
.profile-container {
    flex: 1;
    max-width: 300px;
    text-align: center; /* Center profile image in its section */
    margin-bottom: 0px;
}

.profile-img {
    border-radius: 50%;
    width: 300px;
    height: 300px;
    object-fit: cover;
    margin: 0 auto;
    border: 5px solid #f0f0f0; /* Subtle border to enhance visibility */
}

.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a img {
    width: 30px;
    transition: transform 0.3s ease;
}

.social-links a img:hover {
    transform: scale(1.2);
}

/* Hero Content */
.hero-content {
    flex: 2;
    max-width: 800px;
    padding: 0 20px;
}

.highlight-link a {
    color: #a429e6;
    text-decoration: none;
}

.highlight-link a:hover {
    text-decoration: underline;
}

.highlight {
    background-color: #f0f0f0;
    padding: 20px;
    border-left: 5px solid rgba(41, 123, 230, 0.2);;
    color: #1f1f69;
    font-style: italic;
    margin: 20px 0;
    text-align: left;
    border-radius: 10px;
}

/* Section Styling */
section {
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

/* Lists */
.education-list, .publication-list, .news-list, .services-list {
    list-style: none;
    text-align: left;
    margin: 0 auto;
}

li {
    margin-bottom: 15px;
    margin-left: 1rem;
}

/* Footer */
footer {
    /*background-color: #ffffff;*/
    color: #fff;
    text-align: center;
    padding: 20px 5px;
    position: relative;
    bottom: 0;
    width: 100%;
    display: flex; /* Use flexbox for centering */
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
}

footer p {
        font-size: 0.8rem;
}

.footer-social-links {
    margin-top: 15px;
}

.footer-social-links img {
    width: 25px;
    margin: 0 10px;
    transition: transform 0.2s ease;
}

.footer-social-links img:hover {
    transform: scale(1.2);
}

/* Responsive Hero Section */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        align-items: center;
        text-align: center;  /* Center content on smaller devices */
    }

    .hero-inner {
        flex-direction: column;
    }

    .hero-content {
        padding: 0;
    }

    .profile-container {
        margin-bottom: 30px;
    }
}

/* Paragraph Styling */
p {
    color: #878787; /* Soft gray color for text */
    font-size: 1rem; /* Ensure readability, can also use 16px if smaller size is preferred */
    line-height: 1.6; /* Spacing between lines to improve readability */
    margin-bottom: 20px; /* Space below each paragraph for breathing room */
    max-width: 800px; /* Optional: Prevent paragraph width from getting too long on larger screens */
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    text-align: justify;
}

/* Link Styling for Hyperlinks */
a {
    color: #297be6; /* Purple color to highlight links */
    text-decoration: none; /* Remove underline for a cleaner look */
    transition: color 0.3s ease; /* Add a slight color change on hover for better user experience */
}

a:hover {
    color: #371b7e; /* Darker purple on hover for better feedback */
}

/* Section Container */
section {
    padding: 40px 20px; /* Padding around sections to ensure content isn't too cramped */
    max-width: 1200px; /* Prevent content from spreading too wide on larger screens */
    margin: 0 auto; /* Center the section in the view */
}


.publication-list {
    list-style-type: none;
    padding-left: 0;
}

.publication-title {
    color: #414247;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-weight: bold; /* Changed to bold */
    text-decoration: none;
    font-size: 1.1rem;
    text-align: left;
}

.publication-title a {
    color: black; /* Default color for the link */
    text-decoration: none; /* Remove underline if desired */
}

.publication-title a:hover {
    color: #371b7e;
}

/*.publication-title:hover {*/
/*    color: #371b7e; !* Add hover effect *!*/
/*}*/

.primary-author, .other-authors, .pub-year, .pub-venue {
    font-size: 0.9rem;
    font-family: 'Roboto', sans-serif;
    color: #4f4f4f /* gray color for better readability */
}

ul ul {
    list-style-type: disc;
    list-style-position: outside;
    margin-left: 20px;
}


.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 1; /* Adding opacity for better transition */
}

.section-title.left-align {
    text-align: left;
    padding-left: 0px; /* Optional: Add padding for balance */
    font-size: 28px;
}


/* Publications Section Styling */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.container h1 {
    margin-bottom: 20px;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 20px;
    background-color: #518fe8;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filter-button:hover {
    background-color: #371b7e;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.publication-item {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}


.publication-item:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.publication-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 8px;
}

.publication-content {
    display: flex;
    flex-direction: column;
}

.publication-badge {
    display: inline-block;
    background-color: #e0e0e0;  /* Adjust to your preferred color */
    /*color: ;  !* Badge text color *!*/
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: 10px;
    /*margin-right: 10px;*/
}

/*.publication-title {*/
/*    font-size: 1.5rem;*/
/*    font-weight: bold;*/
/*    margin-bottom: 10px;*/
/*}*/

.publication-authors {
    font-size: 1rem;
    margin-bottom: 10px;
}

.publication-details {
    font-size: 0.9rem;
    color: #666;
}

.publication-link {
    margin-top: 10px;
    color: #297be6;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.publication-link:hover {
    color: #371b7e;
}
/* Style for the project list container */
.project-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    align-items: center;
}

/* Style for the video in the project list */
/* Style for the video in the project list */
.project-video {
    width: 280px;
    height: 180px;
    flex-shrink: 0;
    border-radius: 8px;
}

/* Style for the image in the project list */
.project-image {
    width: 280px;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 8px;
}

/* Style for the project content */
.project-content {
    display: flex;
    flex-direction: column;
}

.project-content h2 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    text-align: left;
}

.project-content p {
    margin-bottom: 10px;
    color: #666;
}

.project-item:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}


.blog-post {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.blog-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.blog-content {
    line-height: 1.8;
    color: #555;
    font-size: 1rem;
    margin-top: 20px;
}

.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 40px;
}

.pagination li {
    margin: 0 10px;
}

.pagination a {
    padding: 10px 15px;
    background-color: #f0f0f0;
    color: #297be6;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.pagination a:hover {
    background-color: #371b7e;
    color: #fff;
}

@media (max-width: 768px) {
    .blog-container {
        flex-direction: column;
    }

    .content {
        width: 100%;
    }

    .sidebar {
        width: 100%;
        margin-top: 30px;
    }
}


/* Blog Post Layout Styling */
.post {
    position: sticky;
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.post-header {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    /*position: sticky;*/
}

.post-header h1 {
    margin: 15px;
    font-size: 2rem;
    font-weight: 700;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.author-info p {
    font-size: 0.7rem;
    width: 100px;
    text-align: left;
    color: #666;
}

.social-links {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
}

.social-links li a {
    text-decoration: none;
    color: #666;
}

.post-title {
    font-size: 1rem;
    margin-top: 20px;
    line-height: 1.2;
}

.post-meta {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.post-content {
    line-height: 1.8;
    font-size: 1rem;
    color: #333;
    margin-top: 20px;
}

.post-footer {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
}

.post-footer a {
    color: #297be6;
    text-decoration: none;
}

.post-footer a:hover {
    text-decoration: underline;
    color: #371b7e;
}


.video-container-in-blog {
    display: flex;
    justify-content: center;  /* Center horizontally */
    align-items: center;      /* Center vertically, if needed */
    margin: 20px 0;           /* Add some spacing above and below */
}

/* Mobile Styling for Project Items */
@media (max-width: 768px) {
    .project-item {
        flex-direction: column; /* Stack project content vertically on smaller screens */
        align-items: center; /* Center the content for better appearance */
    }

    .project-video,
    .project-image {
        width: 100%; /* Make videos and images take full width on mobile */
        height: auto; /* Adjust height automatically to maintain aspect ratio */
        margin-bottom: 15px; /* Add space below the media element */
    }

    .project-content {
        text-align: center; /* Center text content for better readability */
        padding: 0 10px; /* Add some padding to ensure content isn't too cramped */
    }

    .project-content h2 {
        font-size: 1.5rem; /* Increase text size slightly for better readability */
    }

    .project-content p {
        font-size: 1rem; /* Ensure readability on smaller devices */
        color: #555; /* Keep the color soft to avoid visual overload */
    }
}



nav,
.nav-links a,
.logo {
    font-family: 'Montserrat', sans-serif;
}

.nav-links a {
    font-size: 16px;
    line-height: 21px;
    letter-spacing: 0.01em;
}

.nav-links a.active {
    font-weight: bold;
    color: #333;
    letter-spacing: 0.1px; /* Adjust letter spacing if necessary to keep consistent visual appearance */
}

/* Style for the Subtitle */
/* Header - Logo Section */
/* Logo Section */
.logo {
    display: flex;
    flex-direction: column; /* Stack the text vertically */
    align-items: flex-start; /* Align to the left */
    font-family: 'Montserrat', sans-serif; /* Use the Montserrat font */
}

.logo h1 {
    font-size: 2rem; /* Make the title larger */
    font-weight: bold;
    margin-bottom: 0.2rem; /* Small spacing between name and tagline */
    font-family: 'Montserrat', sans-serif; /* Use Montserrat for the name */
}

.tagline {
    font-size: 13px; /* Smaller text for tagline */
    font-family: 'Merriweather', serif; /* Use serif font for the tagline */
    color: #666; /* Lighter color for a secondary look */
    margin: 0; /* Remove margin to keep it close to the name */
    font-weight: 400;
}

/* Style for the tutorial list container */
.tutorial-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    align-items: center;
}

/* Style for the video in the tutorial list */
.tutorial-video {
    width: 280px;
    height: 180px;
    flex-shrink: 0;
    border-radius: 8px;
}

/* Style for the image in the tutorial list */
.tutorial-image {
    width: 280px;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 8px;
}

/* Style for the tutorial content */
.tutorial-content {
    display: flex;
    flex-direction: column;
}

.tutorial-content h2 {
    font-size: 1.5rem;
    text-align: left;
}


pre code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    border-radius: 5px;
    padding: 10px;
    /*border: none;*/
}

strong {
    background-color: #f0f0f0; /* Gray background */
    padding: 2px 4px;          /* Add some padding around the text */
    border-radius: 3px;        /* Rounded corners */
    font-weight: bold;         /* Make sure it's bold */
    color: #333;               /* Adjust text color if needed */
}


