@font-face {
    font-family: 'Futura PT';
    /* Prefer the installed/local font; include common local name variations */
    src: local('Futura PT'), local('FuturaPT'), local('Futura PT Book'), local('FuturaPT-Book');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Futura PT';
    src: local('Futura PT Bold'), local('FuturaPT-Bold'), local('Futura PT Heavy');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Futura PT', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    /* Generous left/right padding on very wide screens */
    padding: 180px 400px 160px; /* top 180px, left/right 400px, bottom 160px */
    font-weight: 300; /* lighter overall font weight */
    background-color: #ffffff; /* CHANGED */
    color: #333;
}

/* Two breakpoints: medium (1200px) and small (900px) */
@media (max-width: 1200px) {
    body {
        /* Medium screens get reduced but comfortable gutters */
        padding: 130px 250px 100px;
    }
}

@media (max-width: 800px) {
    body {
        /* Compact layout for small screens */
        padding: 24px 24px 24px;
    }
}

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

/* =============================================================== */
/* PROFILE HEADER STYLES                                           */
/* =============================================================== */
.profile-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px; /* add space above profile photo */
}

.profile-pic {
    width: 100%;
    height: auto; /* keep aspect ratio */
    display: block; /* avoid inline gap */
    object-fit: cover;
    margin-bottom: 20px;
}

.intro-text {
    font-size: 1.1em;
    max-width: 600px;
    margin: 0; /* align to left within the container */
    text-align: left;
}

a {
  color: rgb(190, 7, 120);
  background-color: transparent;
  font-weight: regular;
}

/* =============================================================== */
/* COLLAPSIBLE ACCORDION STYLES                                    */
/* =============================================================== */
.collapsible {
    /* --- CHANGED --- */
    background-color: #ffffff; /* White background */
    color: #333;               /* Dark text color */
    
    cursor: pointer;
    padding: 18px 18px 18px 0; /* remove left padding so text aligns with container */
    width: 100%;
    border: 0px solid #ddd;     /* Added a light border for definition */
    border-radius: 0px;         /* Slightly rounded corners */
    text-align: left;
    outline: none;
    font-size: 1.2em;
    font-family: 'Futura PT', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    margin-top: 0;
    transition: background-color 0.3s ease;
    position: relative; /* for absolutely positioned ::after */
    text-transform: uppercase; /* make collapsible headings all caps */
    letter-spacing: 0.02em;
    /* single dividing line between stacked collapsibles */
    border-top: 1px solid #cccccc;
    border-style: solid;
}

/* Remove the top border from the very first collapsible so it doesn't have a line at the top of the list */
.collapsible:first-of-type {
    border-top: 1px solid #cccccc; /* add border above Research */
}

/* Add bottom border to the last collapsible so there's a line below Teaching */
.collapsible:last-of-type {
    border-bottom: 1px solid #cccccc;
}

/* Slightly lighter strong to keep emphasis without heavy bold */
strong {
    font-weight: 500;
}

.intro-text strong {
    text-transform: uppercase;
    display: inline-block; /* preserve line-break behavior */
}

.collapsible:hover {
    background-color: #f9f9f9; /* Subtle hover effect */
}

.collapsible.active {
     border-bottom-left-radius: 0; /* Straighten corners when open */
     border-bottom-right-radius: 0;
}


.collapsible::after {
    display: none; /* replaced by animated icon element */
}

/* Animated plus/minus icon inside collapsible buttons */
.collapsible .icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: inline-block;
    pointer-events: none; /* let clicks go to the button */
}

.collapsible .icon .line {
    position: absolute;
    left: 50%;
    top: 50%;
    /* Use a CSS variable so the icon can match the site's link colour;
       fallback to a sensible blue if the variable isn't set. */
    background-color: var(--link-color, rgb(190, 7, 120));
    transition: transform 260ms cubic-bezier(.2,.8,.2,1), opacity 200ms ease;
    transform-origin: center;
    border-radius: 1px;
}

.collapsible .icon .line.v {
    width: 1px;   /* thinner vertical stroke */
    height: 14px;
    transform: translate(-50%, -50%) rotate(0deg);
}

.collapsible .icon .line.h {
    height: 1px;  /* thinner horizontal stroke */
    width: 14px;
    transform: translate(-50%, -50%) rotate(0deg);
}

/* Active state: rotate the vertical line until horizontal, then fade it slightly
   so the remaining visible line reads as a minus sign. */
.collapsible.active .icon .line.v {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0.15;
}

.collapsible.active .icon .line.h {
    /* keep horizontal line visible; can slightly scale for effect */
    transform: translate(-50%, -50%) rotate(0deg) scaleX(1.0);
}

.content {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #ffffff; /* White background to match button */
  
    border: 0px solid #ddd;     /* Matching border */
    border-top: none;           /* Remove top border to merge with button */
    border-radius: 0 0 0px 0px; /* Round bottom corners */
}

/* =============================================================== */
/* CONTENT LIST STYLES                                             */
/* =============================================================== */

.content ul {
    /* --- NEW --- */
    list-style-type: none; /* Remove bullet points */
    padding-left: 0;       /* Remove default indentation */
}

.content ul li, .content .teaching-entry {
    /* --- NEW --- */
    margin-bottom: 20px; /* Add space between list items and entries */
}

/* To avoid double margin on the last item */
.content ul li:last-child, .content .teaching-entry:last-child {
    margin-bottom: 0;
}

.content h3, .content h4 {
    margin-top: 25px;
}

/* Make abstracts inside list items have consistent spacing */
.content ul li p {
    margin: 0.4em 0 1em; /* small gap above, larger gap below */
    line-height: 1.5;
}

/* Footer styling */
.site-footer {
    margin-top: 10px; /* reduce space between footer and last collapsible */
    padding-top: 10px;
    color: #333;
}
.site-footer a { color: inherit; text-decoration: underline; }

/* Make the headings inside the first collapsible less heavy */
.collapsible:first-of-type + .content h3,
.collapsible:first-of-type + .content h4 {
    font-weight: 400;
}

.content .teaching-entry ul li {
    margin-bottom: 0; /* Reset margin for nested list items if any */
}

/* Teaching two-column layout: dates on the left, course info on the right */
.content .teaching-table {
    display: grid;
    grid-template-columns: 160px 1fr; /* fixed date column, flexible course column */
    column-gap: 20px;
    row-gap: 12px;
    align-items: start;
    margin-top: 10px;
    margin-bottom: 24px; /* add space between the table and the next collapsible */
}

.content .teaching-table .date {
    color: #333;
    font-weight: 500;
    text-transform: capitalize;
}

.content .teaching-table .course {
    color: #333;
}

/* Stack into a single column on small screens */
@media (max-width: 600px) {
    .content .teaching-table {
        grid-template-columns: 1fr;
    }
    .content .teaching-table .date {
        margin-bottom: 4px;
    }
}



