/* Basic reset */
body, h1, h2, p {
    margin: 0;
    padding: 0;
}
/* Layout and background */
body {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
    margin: 0;
    background-color: #f4f4f4; /* Light grey background */
}
.container {
    display: flex;
    width: 100%;
}
/* Sidebar styling */
.sidebar {
    width: 250px;
    background: #ffffff; /* White background */
    color: #333;
    padding: 20px;
    border-right: 2px solid #e0e0e0; /* Light border for separation */
    display: flex;
    flex-direction: column;
    align-items: center;
}
.header {
    width: 100%;
    text-align: center;
}
.logo {
     width: 250px; 
    height: auto;
    margin-bottom: 20px;
}
.sidebar .profile {
    text-align: center;
    margin-bottom: 30px;
}
.sidebar .profile img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 10px;
    border: 4px solid #e0e0e0; /* Light border around profile image */
}
.sidebar .profile h1 {
    font-size: 1.5em;
    margin-bottom: 5px;
}
.sidebar .profile p {
    font-size: 1em;
}
/* Main content styling */
.content {
    flex: 1;
    padding: 0 20px;
    background: #ffffff; /* White background */
    display: flex;
    flex-direction: column;
}
.nav-top {
    background: #002248; /* UCL Blue background for the top nav */
    padding: 10px 20px;
}
.nav-top nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}
.nav-top nav ul li {
    margin: 0 15px;
}
.nav-top nav ul li a {
    color: #ffffff; /* White color for links */
    text-decoration: none;
    font-size: 1.1em;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s;
}
.nav-top nav ul li a:hover {
    background: #005bb5; /* Slightly darker blue on hover */
}
/* Main content section */
.home {
    flex: 1;
    padding: 40px;
}
.home h2 {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: #002248; /* UCL Blue color for headings */
    font-weight: bold;
}
.home p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333;
}
/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #e0e0e0;
    }
    .content {
        /* The 20px padding here is now responsible for the left/right margins */
        padding: 20px;
    }
    /* === ADD/UPDATE THESE RULES === */
    .nav-top {
        /* Reset horizontal padding (0) but keep vertical padding (10px) */
        padding: 10px 0;
    }
    .home {
        /* Reset horizontal padding (0) but keep vertical padding (40px) */
        padding: 40px 0;
    }
    /* ============================== */
}
@media (max-width: 768px) {
    .sidebar .profile img {
        width: 120px;
        height: 120px;
    }
    .sidebar .profile h1 {
        font-size: 1.3em;
    }
    .sidebar .profile p {
        font-size: 0.9em;
    }
    .home h2 {
        font-size: 2em;
    }
    .home p {
        font-size: 1em;
    }
    .nav-top nav ul {
        flex-direction: column;
    }
    .nav-top nav ul li {
        margin: 10px 0;
    }
}

/* General styling for navigation links */
.nav-top nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
}

.nav-top nav ul li {
    margin: 0;
}

.nav-top nav ul li a {
    color: #ffffff; /* White color for links */
    text-decoration: none;
    font-size: 1.1em;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-top nav ul li a:hover {
    background: #005bb5; /* Slightly darker blue on hover */
}

/* Specific styling for the CV link */
.nav-top nav ul li a[href$=".pdf"] {
    background: #004080; /* Dark blue background for CV link */
    color: #ffffff; /* White text color */
}

/* Contact Section Styles */
.contact {
    margin-top: 20px;
    text-align: center; /* Center text and logos */
}

.contact h2 {
    color: #002248; /* Template blue color for the title */
    font-size: 1.2em;
    margin-bottom: 15px;
}

.contact-link {
    display: inline-block;
    margin: 0 10px; /* Space between icons */
}

.contact-link img {
    width: 36px; /* Adjust size as needed */
    height: 36px; /* Adjust size as needed */
    vertical-align: middle; 
    transition: opacity 0.3s;
}

.contact-link img:hover {
    opacity: 0.7; /* Slightly transparent on hover */
}

/* Research Section Styles */
.research {
    max-width: 800px;
    margin: 0 auto;
}

.research h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.research-section {
    margin-bottom: 30px;
}

.research-section h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.research-section ul {
    list-style-type: disc;
    margin-left: 20px;
}

.research-section ul li {
    margin-bottom: 10px;
}

.research-section ul li a {
    text-decoration: none;
    color: #005bb5; /* Template blue color for links */
}

.research-section ul li a:hover {
    text-decoration: underline; /* Underline on hover */
}

.research-section p {
    font-style: italic; /* Italicize the award information */
    margin-top: 10px;
    color: #333; /* Adjust color if needed */
}

/* CSS for the Main List (The Black Squares) */
.research-list {
    list-style-type: square; /* Makes the main list markers black squares */
    padding-left: 20px;
}

/* CSS for the Nested Awards List (The Circles) */
.paper-details {
    /* Indents the list slightly more */
    padding-left: 30px; 
    /* Changes the markers to open circles */
    list-style-type: circle; 
    margin-top: 10px; /* Space between authors and awards list */
    margin-bottom: 20px; /* Space before the next paper */
}

/* Styling for the Paper Title */
.paper-title {
    font-size: 1.1em; /* Make the title stand out a bit */
}

/* Styling for the Author Line */
.authors {
    /* Use a slightly smaller/lighter font for the author line */
    font-size: 0.95em; 
    font-style: italic;
    color: #555; /* Gray out the author list slightly */
    margin: 5px 0 0 5px; /* Minimal spacing around authors */
}

/* Styling for the SSRN link */
.paper-title a, .paper-details a {
    color: #002248; /* Use your UCL blue for links */
    text-decoration: none;
}
.paper-title a:hover, .paper-details a:hover {
    text-decoration: underline;
}

/* Styling for the Event List Container */
.event-list {
    list-style: disc; /* Use a standard black disc bullet */
    padding-left: 20px;
}

/* Ensures each event entry is a block for the styling to work */
.event-list li {
    margin-bottom: 20px; /* Adds space between each event bullet point */
}
.event-entry {
    display: flex;
    flex-direction: column; /* Stacks all spans vertically */
}

/* Styling for the Main Title */
.event-title {
    font-size: 1em; /* Makes the title larger */
    font-weight: bold; /* Makes the title bold */
    color: #333; /* Dark color for the title */
    margin-bottom: 2px;
}

/* Styling for Location and Date */
.event-detail {
    font-size: 0.9em; /* Normal size */
    font-weight: normal; 
    color: #333; /* Keeps the text dark */
    margin-top: 0;
    margin-bottom: 2px;
}

/* Styling for the Time (Light Gray) */
.event-location {
    font-size: 0.9em; 
    font-weight: normal;
    color: #333; /* Light gray color to match the image */
    margin-top: 2px;
}



















