.experience-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 10px;
}

.experience-content {
    flex-grow: 1;
}

.role {
    margin: 0;
    font-weight: 600;
}

.institution {
    margin: 2px 0 0 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.date {
    margin: 0;
    color: hsl(var(--muted-foreground));
    white-space: nowrap;
    font-size: 0.875rem;
}

.description {
    margin: 8px 0 0 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: hsl(var(--muted-foreground));
    font-weight: 400;
}


.inner-container {
    max-width: 720px;
    margin: 0 auto;
}

.inner-container > h2 {
    margin-left: 0.5rem;               /* better to keep headings flush left with the name */
    margin-bottom: 0.9rem;
    font-weight: 600;
}

/* All experience blocks (including papers) get the same starting indent */
.inner-container > .experience-item {
    margin-left: 1.25rem;         /* ← this level = "Master's Thesis", "Cybersecurity Intern", paper title */
    margin-bottom: 0.5rem;
}

/* Prevent children from adding unwanted extra indent */
.experience-item .experience-content {
    margin-left: 0;
}

/* Role lines and paper titles stay at the main indent level */
.experience-item .role,
.experience-item .institution {
    margin-left: 0;               /* ← key fix: no extra indent here */
    margin: 0.15rem 0;            /* tight vertical spacing */
}

/* Only descriptions get deeper indent + bullet */
.experience-item .description {
    margin-left: 1.6rem;          /* deeper than the role/institution level */
    margin-top: 0.4rem;
    margin-bottom: 0.3rem;
    position: relative;
    padding-left: 1.4rem;
}

.description::before {
    content: "•";
    position: absolute;
    left: 0;
    color: hsl(var(--muted-foreground));
}

/* Date on the right stays flush right */
.experience-item .date {
    margin: 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Tighter spacing just for List of Papers */
.inner-container > h2:nth-of-type(3) {
    margin-bottom: 0.45rem;       /* slightly more breathing than 0.4, but still tight */
}

.inner-container > h2:nth-of-type(3) + .experience-item {
    margin-top: 0.1rem;
    margin-bottom: 1.2rem;        /* give some space after the last item if needed */
}

/* Optional: make paper title look more like a publication entry */
.experience-item .institution a {
    color: hsl(var(--foreground));
    text-decoration: none;
    font-weight: 500;
}

.experience-item .institution a:hover {
    text-decoration: underline;
}

